New Landing How can we help? Atelier Hide 'Description' tab from product pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #180866
    GTS75
    Member
    Post count: 240

    I use the product short description box inside the Product Meta options in the Meta Options box for product pages. When viewing the front end of product pages the description tab below the main product content is empty. Is it possible to remove this description tab from all product pages and only show the ‘Additional Information’ tab?

    #181116
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Add the code below to your functions.php of the child theme.

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

    -Rui

    #307325
    juliensalanave
    Member
    Post count: 125

    Hello Rui. How about if we also remove the Additional Information. What is the script? Tnx

    – Billy

    #307330
    David Martin – Support
    Moderator
    Post count: 20834

    Please see here: https://docs.woocommerce.com/document/editing-product-data-tabs/.

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs_additional', 98 );
    function woo_remove_product_tabs_additional( $tabs ) {
        unset( $tabs['additional_information'] );  	// Remove the additional information tab
        return $tabs;
    }
    #307332
    juliensalanave
    Member
    Post count: 125

    Thanks David. 🙂

    #307336
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 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