• Resolved condolisa

    (@lksa)


    There is a default tab named “Description” that is always first in order before tabs. How to remove this tab as I don’t need it at all. But it keeps showing up in all of my product pages where the tabs are. Thanks.

    • This topic was modified 7 years ago by condolisa.
Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @lksa,

    Just so you know this is WooCommerce’s default description tab. Our plugin has no control over it. However, you can use a filter function to remove it (this article from WooCommerce explains it – https://docs.woocommerce.com/document/editing-product-data-tabs/).

    This is the filter function you’ll need. Are you familiar with adding filter functions to your website?

    add_filter( 'woocommerce_product_tabs', 'yikes_remove_description_tab', 20, 1 );
    
    function yikes_remove_description_tab( $tabs ) {
    
    	// Remove the description tab
        if ( isset( $tabs['description'] ) ) unset( $tabs['description'] );      	    
        return $tabs;
    }

    Let me know.

    Thanks,
    Kevin.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Description Tab’ is closed to new replies.