Home Forums WoodMart support forum Hide Tabs

Hide Tabs

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51011

    gzelasco
    Participant

    How to hide tabs from product PAGE

    ADDITIONAL INFORMATION and REVIEW TAB

    #51037

    Hello,

    You can find here the information how to do that: https://docs.woocommerce.com/document/editing-product-data-tabs/

    Best Regards

    #51048

    gzelasco
    Participant

    I have added the following in Global Custom CSS, and IS NOT WORKING

    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

    function woo_remove_product_tabs( $tabs ) {

    unset( $tabs[‘description’] ); // Remove the description tab
    unset( $tabs[‘reviews’] ); // Remove the reviews tab
    unset( $tabs[‘additional_information’] ); // Remove the additional information tab

    return $tabs;
    }

    #51057

    Hello,

    If you want to customize WooCommerce you will need to find a developer for that. Sure it is not working you are trying to place PHP functions into CSS field. It may destroy your site at all.

    Try to find a plugin, often plugins do not require developer skills.

    Best Regards

    #51414

    gzelasco
    Participant

    Hi Elise, It is very disappointing that in order to HIDE product tabs (very simple task) need to find a developer, this is inadmissible for a Premioum theme,
    I need to solve the request

    Please advice other options

    #51436

    Artem Temos
    Keymaster

    You need to add this code to the functions.php file in the child theme in order to hide tabs since it is not a CSS code.

    #52931

    gzelasco
    Participant

    I have already add the code into functions.php Child theme, but is not working
    See attached

    Attachments:
    You must be logged in to view attached files.
    #52937

    Artem Temos
    Keymaster

    The code seems to be wrong. You need to replace all signs with right quote marks – '.

Viewing 8 posts - 1 through 8 (of 8 total)