[Resolved] How to delete the tab of “Reviews”

Home Forums Support [Resolved] How to delete the tab of “Reviews”

Home Forums Support How to delete the tab of “Reviews”

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1315433
    Paul

    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?

    #1315503
    David
    Staff
    Customer Support

    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/

    #1316673
    Paul

    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

    #1317015
    David
    Staff
    Customer Support

    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;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.