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.

Alternatively, you can use this other snippet in order to rename it: https://businessbloomer.com/woocommerce-rename-product-description-single-product-page/

How to Remove the “Description” Title @ WooCommerce Single Product Tabs

Snippet (PHP): Remove “Description” Heading @ WooCommerce Single Product Tabs


/**
 * @snippet       Remove "Description" Title @ WooCommerce Single Product Tabs
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=97716
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.3
 * @community     https://businessbloomer.com/club/
 */ 

add_filter( 'woocommerce_product_description_heading', '__return_null' );

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce Visual Hook Guide: Single Product Page
    Here’s a visual hook guide for the WooCommerce Single Product Page. This is part of my “Visual Hook Guide Series“, through which you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can copy/paste). If you like this guide and it’s helpful to you, let me know in the comments! […]
  • WooCommerce: Disable Variable Product Price Range $$$-$$$
    You may want to disable the WooCommerce variable product price range which usually looks like $100-$999 when variations have different prices (min $100 and max $999 in this case). With this snippet you will be able to hide the highest price, and add a “From: ” prefix in front of the minimum price. At the […]
  • WooCommerce: Hide Price & Add to Cart for Logged Out Users
    You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out. All you need is pasting the following code in your functions.php (please note: […]
  • WooCommerce: Add Custom Field to Product Variations
    Adding and displaying custom fields on WooCommerce products is quite simple. For example, you can add a “RRP/MSRP” field to a product, or maybe use ACF and display its value on the single product page. Easy, yes. Unfortunately, the above only applies to “simple” products without variations (or the parent product if it’s a variable […]
  • WooCommerce: Show Number Of Products Sold @ Product Page
    WooCommerce database already stores the number of products sold for you. Therefore, you may want to show such number on the product page, close to the Add To Cart button. As we’ve seen in my book Ecommerce and Beyond, showing the number of sales for each product can increase your sales conversion rate. All you […]

Rodolfo Melogli

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. Follow @rmelogli

30 thoughts on “WooCommerce: Remove “Description” Heading @ Single Product Tabs

  1. When i try to add this line, my hole site breaks.
    woocommerce 7.7.2

    1. What does the error say?

  2. 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…

    1. Okey short answer is: no, is better to not remove this h2 title unless you a re giving another title in the tab description?

      1. I wouldn’t worry too much about search engines. Do whatever is better for users

        1. Thank you! Good advice.

  3. This worked! Thank you!!

  4. Thanks Man !!

    1. You’re welcome Man!

  5. 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

    1. 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!

  6. Can you share the code which works for variable products too?

    1. Why, it doesn’t work?

  7. 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!

    1. Nice!

  8. It works! Thanks for your sharing. 2020.02

    1. Cheers

  9. 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

    1. It’s the same, maybe “__return_empty_string” is more “correct”. But should work either way

  10. This is the second time today that you’ve had the answer to my question… Thank you, Rodolfo!!! 🙂

    1. Ahah, thank you!

  11. Worked! THANKS !

    1. Cool!

  12. Grazie Rodolfo, ma questo script non mi funziona. L’altro che hai pubblicato oggi sì.
    Il tema è Enfold
    Ciao
    Mauro

    1. 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

  13. Great! It works fantastic… Now I won’t need to override any file every time I update Woocommerce.

    Thanks!!

    1. Awesome 🙂

  14. 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!

    1. Great 🙂

Questions? Feedback? Customization? Leave your comment now!
_____

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

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