Archived topic
How to delete the tab of "Reviews"
3 replies · Started by Paul on June 5, 2020
hello, how are you
please check the screenshot
i m using the generatepress + wocoomerce
how to delete the tab of "reviews" on the product page?
Hi there,
you can use the woocommerce_product_tabs filter:
https://docs.woocommerce.com/document/editing-product-data-tabs/#removing-tabs
However, if this leaves you with just the Description tab then you may as well remove all of them and just display the Long description - this article explains how:
https://businessbloomer.com/woocommerce-remove-product-tabs-echo-long-description/
hello, david
thanks much for your reply and detail.
im sorry that i am not good at PHP and im afraid that it will get big trboules for the genereatepress theme and others. so dont change it now.
regards
For the first option you would just add this PHP:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['reviews'] ); // Remove the reviews tab
return $tabs;
}
The second option you would simply copy and paste the code that site provides.
OR if you want you can add this CSS to hide the Tab:
.woocommerce #content div.product .woocommerce-tabs ul.tabs li.reviews_tab {
display: none;
}