Viewing 15 posts - 1 through 15 (of 16 total)
  • #87176
    pedromuraki
    Member
    Post count: 4

    How to remove the “reviews tab” on product page?

    Thanks.

    #87179
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code :
    #product-accordion .accordion-group:nth-child(3){display:none !important}
    Thanks

    #87383
    pedromuraki
    Member
    Post count: 4

    Hi. Just pasted it on the custom css but did not worked. Still showing reviews tab on product page.

    Tks.

    #87399
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide product page url so i can check and resolve it easily.
    Thanks

    #87453
    pedromuraki
    Member
    Post count: 4

    Hi.

    http://lojaonboard.com.br/produto/double-elephant/

    That´s in portuguese (Brazil) language, so it´s not “Reviews”, it´s “Avaliações”.

    Tks.

    #87457
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use the following snippet in functions.php to remove specific tabs:

    add_filter( 'woocommerce_product_tabs', 'custom_woo_remove_reviews_tab', 98);
    function custom_woo_remove_reviews_tab($tabs) {
    
    unset($tabs['reviews']);
    
    return $tabs;
    }

    Thanks

    #87461
    pedromuraki
    Member
    Post count: 4

    It worked. Tks a lot.

    #87462
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that your issue resolved.
    Thanks

    #87649
    UGVisionaries
    Member
    Post count: 12

    I posted this same code to my child functions.php and it didn’t work. I’m using a lightbox and I have an add_action for my lightbox in the functions.php file and it’s working fine. Are there any alternatives?

    #87690
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @UGVisionaries
    – Please put the just after php open tag [<?php] and let me know your feedback.
    Thanks

    #87870
    Shanty
    Member
    Post count: 48

    Hello i have the same problem,

    I added:

    add_filter( ‘woocommerce_product_tabs’, ‘custom_woo_remove_reviews_tab’, 98);
    function custom_woo_remove_reviews_tab($tabs) {

    unset($tabs[‘reviews’]);

    return $tabs;
    }

    to functions.php (thru the back office editor) but the “Reviews” are still here.

    Thank you for your help.

    #87871
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    What is the link to your page?

    – Kyle

    #88235
    UGVisionaries
    Member
    Post count: 12

    I tried putting it after “<?php” open tag but it did not work. The link to a product page on my site is:

    http://undergroundvisionaries.com/store/black-shoes/

    Here’s the code I’m using:

    
    <?php 
    add_filter( 'woocommerce_product_tabs', 'custom_woo_remove_reviews_tab', 98);
    function custom_woo_remove_reviews_tab($tabs) {
    
    unset($tabs['reviews']);
    
    return $tabs;
    }
    ?>
    
    #88241
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove that code and use this custom css code :

    #product-accordion .accordion-group:nth-child(3) {
        display: none;
    }
    

    Thanks

    #88307
    UGVisionaries
    Member
    Post count: 12

    Thank you, it worked!

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register