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
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.
Where’s the code snippet?
Hi,
The Gist should be in the post – I can see it. I’ve seen it drop out briefly before.
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;
}
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.
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
Yeah it looks like a backtick, but note this might be a copy paste issue here in WordPress – nice spot though 🙂
In my case it does not just remove that “description” tab but also the description. I just want the tab gone but the description to stay.