WooCommerce: Remove “Description” Heading @ Single Product Tabs
When you are on the single product page, and you have a non-empty product long description, a “Description” tab appears below the product images. Unfortunately, not only the tab label is “Description”, but also the tab H2 heading. This sounds and looks horrible, so here’s a way to completely remove it.
You can place PHP snippets at the bottom of your child theme functions.php file (delete "?>" if you have it there). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my free video tutorial "Where to Place WooCommerce Customization?"
Does this snippet (still) work?
Please let me know in the comments if everything worked as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting on PHP 7.3.
Check out these free video tutorials. You can learn how to customize WooCommerce without unnecessary plugins, how to properly configure the WooCommerce plugin settings and even how to master WooCommerce troubleshooting in case of a bug!
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.
28 thoughts on “WooCommerce: Remove “Description” Heading @ Single Product Tabs”
in addition to this and for SEO purposes .. should the tab list had an h2 inside each tab title? Inside the li or a tags…
Okey short answer is: no, is better to not remove this h2 title unless you a re giving another title in the tab description?
I wouldn’t worry too much about search engines. Do whatever is better for users
Thank you! Good advice.
This worked! Thank you!!
Thanks Man !!
You’re welcome Man!
How can i remove the heading of the size chart tab in the woocommerce single product page?
The title would be: WooCommerce: Remove “Size Chart” Heading @ Single Product Tabs
Hope you can help us out,
Hi Larry, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!
Can you share the code which works for variable products too?
Why, it doesn’t work?
Hey THAAAAANK-YOU that’s a cracking 30-second solution. Working perfectly on latest Woocommerce and WordPress as of 13.08.2020.
It works! Thanks for your sharing. 2020.02
hiya i think how others are doing it is instead of __return_null they’re writing __return_empty_string – im not sure if this is a better way of doing it or not
It’s the same, maybe “__return_empty_string” is more “correct”. But should work either way
This is the second time today that you’ve had the answer to my question… Thank you, Rodolfo!!! 🙂
Ahah, thank you!
Worked! THANKS !
Grazie Rodolfo, ma questo script non mi funziona. L’altro che hai pubblicato oggi sì.
Il tema è Enfold
Hey Mauro, thanks for your comment! It could be Enfold uses custom functions, so you’ll need to edit the snippet in this case. Hope this helps
Great! It works fantastic… Now I won’t need to override any file every time I update Woocommerce.
I have to say, I never understood why there was a short description and a long description. Then with tabs there are attributes, reviews… Makes it all so complicated, especially for small and new sites. Thanks for sharing your tips!