Remove the Description tab from WooCommerce

Ever wanted to remove the description tab from your WooCommerce website?

Maybe you put the short description at the top and its pretty much the same text?

Whatever the reason, if you’d like to remove the description tab from WooCommerce, you can do so using the snippet below, which should be added to functions.php, or a custom plugin, or a snippets plugin:

Remove Description tab from WooCommerce

// add this to functions.php, a custom plugin, or a snippets plugin to remove the description tab in woocommerce
// by Robin Scott of Silicon Dales - full info at https://silicondales.com/tutorials/woocommerce-tutorials/remove-description-tab-woocommerce/
add_filter( 'woocommerce_product_tabs', 'sd_remove_product_tabs', 98 );
function sd_remove_product_tabs( $tabs ) {
unset( $tabs['description'] );
return $tabs;
}
view raw functions.php hosted with ❤ by GitHub

Want us to do it for you?

Silicon Dales are accredited WooExperts and can assist with almost any WooCommerce website requirement. Get in touch to book expert assistance, including removing the description tab!

Leave a comment

Leave a comment, below, if this helped you to customize your WooCommerce site and make a great eCommerce website… even greater 🙂

Want to do more?

Have a look at this item on removing product tabs from WooCommerce.

6 thoughts on “Remove the Description tab from WooCommerce

  1. Where’s the code snippet?

    1. Hi,

      The Gist should be in the post – I can see it. I’ve seen it drop out briefly before.

  2. Hello, When i try to do it it works perfectly, but the problem i get is that i can’t run the divi builder anymore it says :
    “This post does not show the standard WordPress content area. Unfortunately, that means the Divi Builder cannot be used on this post.”

    i wrote this in my child theme functions.php and it i can’t access with my divi builder anymore, do you have any others idea how to make it ? Thanks

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

    1. Sounds like Divi Builder relies upon the existence of these tabs. You probably want an expert in Divi to check this over for you – or have a try with Elegant Themes(?) support. I’m only familiar with Divi in a passing sense, in that I’ve worked with it on a few occassions, but I’m not really sure where you’d look for that.

      It certainly will be possible – but there may even be a “Divi way” to remove the tabs.

    2. I’m not sure it’s related, but it looks like that the encoding of your single quote is wrong, it should be ‘ but I see in your snippet ’ … depending on the PHP version you are running it might throw errors that are blocking DIVI.
      2 cents

      1. Yeah it looks like a backtick, but note this might be a copy paste issue here in WordPress – nice spot though 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *