Diabling 'more info' tab on single products

This topic has 4 replies, 2 voices, and was last updated 5 years, 11 months ago ago by Rose Tyler

  • Avatar: PlanB Digital
    PlanB Digital
    Participant
    May 3, 2018 at 10:47

    Is it possible to disable the single projects tab on single products and only have the description here? Client does use the more information tab so it is only showing shipping info which isn’t relevant to their customers.

    Thanks in advance.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 3, 2018 at 12:30

    Hello,

    Please read – https://docs.woocommerce.com/document/editing-product-data-tabs/ (add code in functions.php file of child theme).

    Regards

    Avatar: PlanB Digital
    PlanB Digital
    Participant
    May 3, 2018 at 17:05

    Hi

    I’ve tried adding the code in the doc but it doesn’t seem to work? I have removed it for now as clear I must have been adding it incorrectly.

    Many Thanks

    Chris

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 7, 2018 at 08:39

    Hello,

    You need to open functions.php file via FTP (legenda-child folder) and add this code:

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

    http://prntscr.com/jeor2q
    Make sure that the child theme is activated on your site (Appearance > Themes).

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.