Home Forums WoodMart support forum Hide Additional Info tab from Single Product page

Hide Additional Info tab from Single Product page

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

    JuliaSan
    Participant

    Hi, I would like to hide the 2nd tab from the product page.
    I have now:
    – Product Description (Beschreibung)
    – Additional Info (ZUSÄTZLICHE INFORMATION), and
    – Reviews (BEWERTUNGEN)
    I do not need the Additional Info.
    I have tried to hide it with a custom CSS:

    .single-product .tab-additional_information {
    display: none;
    }
    but it did not work.
    Could you please advise?
    Thanks,
    Julia

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

    Artem Temos
    Keymaster

    Hi,

    Here is an article from WooCommerce documentation that may help you customize your product page tabs https://docs.woocommerce.com/document/editing-product-data-tabs/

    Regards

    #31219

    JuliaSan
    Participant

    Hello,
    thanks, based on this article I put to custom JS the following:

    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );
    function woo_remove_product_tabs( $tabs ) {
    unset( $tabs[‘additional_information’] );
    return $tabs;
    }

    Unfortunately it does not hide the unnecessary tab… 🙁

    Any idea what I am doing wrong?
    Thanks,
    Julia

    #31229

    Artem Temos
    Keymaster

    Hi,

    It is a PHP code and you need to place it to the functions.php file in the child theme and not into the Custom JS section.

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