Site logo

Archived topic

How to delete the tab of "Reviews"

3 replies · Started by Paul on June 5, 2020

Viewing posts 1–4 of 4

hello, how are you

please check the screenshot

https://prnt.sc/sudasi

i m using the generatepress + wocoomerce

how to delete the tab of "reviews" on the product page?

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;
}
This archived topic is closed to new replies.