[Resolved] Remove Additional Information on products

Home Forums Support Remove Additional Information on products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1435965
    Leanne Foulger

    Hi,

    Please go to: https://teatimehomedecor.com/product/coasters-faith-family/

    You will see there is an additional information tab or section. I want to remove this.

    I tried

    li.additional_information_tab {
    display: none !important;
    }

    And, it did not work.

    Any suggestions?

    Thanks,
    Leanne

    #1435978
    Elvin
    Customer Support

    Hi Leanne,

    You can try adding this PHP code.

    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;
    }

    Here’s how to add PHP codes. https://docs.generatepress.com/article/adding-php/

    This will remove all 3 tabs (description, reviews, additional info). If you wish to retain reviews and description you can remove them from the code which will look something like this:

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
    function woo_remove_product_tabs( $tabs ) {
        unset( $tabs['additional_information'] );   // Remove the additional information tab
        return $tabs;
    }

    Let us know if this works for you.

    #1435986
    Leanne Foulger

    Thank you.

    That worked perfectly.

    I really appreciate your quick response.

    I love this theme!!!!

    Leanne

    #1435990
    Elvin
    Customer Support

    Nice one! 🙂

    No problem, We’re always glad to be of any help.:)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.