Remove “Product Description” Heading/Title WooCommerce Single Product Page

This is how to remve the “product description” heading from your WooCommerce single product page.

No thanks to this thread, which seemed to help the poster, but nobody else. Doesn’t make sense to me.

So here’s how it’s really done.

Find description.php which is found in wp-content/plugins/woocommerce/templates/single-product/tabs/

In description.php you will delete:

<h2>< ?php echo $heading; ?></h2>

From the code:

< ?php
/**
 * Description Tab
 */
 
global $woocommerce, $post;

if ( $post->post_content ) : ?>
	<div class="panel entry-content" id="tab-description">
	
		< ?php $heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woocommerce')); ?>
		
		<h2>< ?php echo $heading; ?></h2>
		
		< ?php the_content(); ?>
	
	</div>
< ?php endif; ?>

Then save, and overwrite the file on your server.

Warning! Be sure to either remember how you did this, bookmark this page, make a backup of the file, or all of the above, because as soon as you upgrade your woocommerce plugin next time an update comes out, this will be reset.

About Jeremy Blake

Jeremy is a self-proclaimed socially-awkward penguin living in Utah. He makes money online. As he sleeps.

Connect with Jeremy on Google+.

  • Scottdaris

    Hey there. I just came across this and thought I’d share with you the upgrade-safe way to override WooCommerce templates:
    http://wcdocs.woothemes.com/codex/template-structure/

    • Cedlime

      Thanks Jeremy & Scott! This works great

    • Andy

      Here is a post on the woothemes support forum (not accessible without a membership) that adds clarification and shows that their original article was written sloppily:

      Link: http://support.woothemes.com/entries/22743808-Woocommerce-overriden-template-problem

      ” Hey,

      Welcome to the WooThemes Forums! Thanks for you question.

      You won’t use the /templates folder within your theme.

      Try this path instead:

      /whitelight-commerce/woocommerce/single-product/price.php

      Please advise if this produces the desired result. :)

      Thanks,

      Scott “

  • Harris

    Sure thing is that you will not become a millionaire by hacking the core files of any system – listen to Scottdaris. That is the way to do it :)

    • http://eliteeternity.com/ Jeremy Blake

      I just upgraded and broke my mod. haha cheers

  • Carlos Mateo

    If you want to remove the “Product Description” in an upgrade-safe way, add this to your theme’s functions.php file:

    add_filter( ‘woocommerce_product_description_heading’, ‘remove_product_description_heading’ );
    function remove_product_description_heading() {
    return ”;
    }

    • Robert Campbell

      What about the actual Tab copy above where it read ‘Description’ by default? Is there an equivalent filter that would allow for that to be overridden?
      Thanks!

      • Sander

        Hi Robert, I managed to remove the tabs by adding this to the stylesheet of my theme:
        ul.tabs {display: none;}

        to remove price and producttitle add this to the stylesheet of your theme:
        div.summary {display: none;}
        Good luck!

        • Suicide Rescue

          Sander thanks for the advice! I tested to remove tabs
          ul.tabs {display: none;}
          and i tested to remove summary
          div.summary {display: none;} BUT I still want to show price.. what css shall i then use instead? And do u have a similar css snippet for hiding related products?
          http://suiciderescue.se/wordpress/butik/medlemskap-1/

          All the best Johan

    • http://eliteeternity.com/ Jeremy Blake

      Thanks for sharing this Carlos. I’m back here because I upgraded & lost my edits. Now to do it the real way … :)

      • http://twitter.com/lightandsounds Ryan Berry

        Maybe update the post for the googlers mate, not everyone checks comments for better solutions

    • involvo

      Hi Carlos, your method works.

      Jeremy: I tried applying your method with refreshing on 3 browsers to no avail.

      Is anyone facing a situation of a :?

      This looks to be the case on my site. Anywhere to get rid of this : semi-colon?

  • Stuart

    HI there,

    I am wanting to change my single product title to h2 instead of h1.

    I tried making a copy of all the template files and putting this in my theme directory all under inside a “woocommerce” folder. I made change to the appropriate template file.

    This did nothing. Is there a hook that would allow me do do this?

    Why would copying the files not work?

  • repoulin

    Couldn’t we just comment it out? I just want to use SEO Yoast plugin.