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.
Alternatively, you can use this other snippet in order to rename it: https://businessbloomer.com/woocommerce-rename-product-description-single-product-page/
Snippet (PHP): Remove “Description” Heading @ WooCommerce Single Product Tabs
/** * @snippet Remove "Description" Title @ WooCommerce Single Product Tabs * @how-to businessbloomer.com/woocommerce-customization * @sourcecode https://businessbloomer.com/?p=97716 * @author Rodolfo Melogli, Business Bloomer * @compatible WooCommerce 3.5.3 * @community https://businessbloomer.com/club/ */ add_filter( 'woocommerce_product_description_heading', '__return_null' );
When i try to add this line, my hole site breaks.
woocommerce 7.7.2
What does the error say?
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!!
Great!
Thanks Man !!
You’re welcome Man!
Hey there,
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,
Kind regards,
Larry
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.
First-class solution!
Nice!
It works! Thanks for your sharing. 2020.02
Cheers
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 !
Cool!
Grazie Rodolfo, ma questo script non mi funziona. L’altro che hai pubblicato oggi sì.
Il tema è Enfold
Ciao
Mauro
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.
Thanks!!
Awesome 🙂
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!
Great 🙂