Viewing 4 replies - 1 through 4 (of 4 total)
  • con

    (@conschneider)

    Engineer

    Howdy,

    To my knowledge you can use these custom code snippets: https://woocommerce.com/document/editing-product-data-tabs/

    Kind regards,

    Thread Starter Royah Marie

    (@hautecreations)

    Thank you for that. I see this code here but I don’t think I’m using it right. I deleted the first two lines (description and reviews) because I still want those to show. That did not work. What am I doin wrong?

    /**
     * Remove product data tabs
     */
    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;
    }
    Thread Starter Royah Marie

    (@hautecreations)

    Actually I found this CSS snippet that worked perfectly!

    
    /* To hide the additional information tab */
    li.additional_information_tab {
        display: none !important;
    }
    con

    (@conschneider)

    Engineer

    Hi @hautecreations,

    Thanks for sharing your solution!

    All the best,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Product Tabs: Remove or hide’ is closed to new replies.