Web & Software Developer

Change Product Description Heading Title in WooCommerce

Change the heading title in the product description panel on the single product page in WooCommerce. This is for the ‘Product Description’ title inside the panel, NOT for the ‘Description’ tab. This code snippet goes in your functions.php, or other functions file. Change line 9 where it says, ‘YOUR CUSTOM TITLE’, to your own title.


/** 
 * Change on single product panel "Product Description"
 * since it already says "features" on tab.
 */
add_filter('woocommerce_product_description_heading',
'isa_product_description_heading');

function isa_product_description_heading() {
	return __('YOUR CUSTOM TITLE', 'woocommerce');
}

Variation

You may want to remove the heading title altogether since it’s sort of redundant; there’s already a tab on top with a title. So, to remove the title, do this code instead:

/** 
 * remove on single product panel, "Product Description"
 * since it already says "Description" on tab.
 */
add_filter('woocommerce_product_description_heading',
'isa_product_description_heading');

function isa_product_description_heading() {
	return '';
}

By

We've 19 Responses

  1. Thanks very much for this simple and effective solution – I went with the remove it all together option and it worked perfectly!

    February 20th, 2013 at 2:16 am

  2. Hello Isabel. Thanks very much for posting this. Really big help! If it’s not too much though, may I ask how can I change the title of the tab? Ex: from ‘DESCRIPTION’ to “FEATURES & BENEFITS’. Thanks in advance!

    May 21st, 2013 at 5:55 pm

    • Thanks. I have not used WooCommerce since last year, and I know they updated the entire plugin, but try:

      /**
       * Change "Product Description Tab Title" on single product panel 
       */
      
      function isa_product_description_tab_title() {
          echo 'FEATURES & BENEFITS';
      }
      add_filter('woocommerce_product_description_tab_title',
      'isa_product_description_tab_title');
      

      If the & causes problems, spell out ‘and’, instead. Hope this helps.

      May 22nd, 2013 at 12:20 am

      • Similarly, for removing tabs, use this:

        
        /*	REMOVE REVIEWS TAB ON SINGLE PRODUCT PAGE
        **********************************************************/
        
        add_filter( 'woocommerce_product_tabs', 'os_woo_remove_description_tab', 98);
        function os_woo_remove_description_tab($tabs) {
        
         unset($tabs['description']);
        
         return $tabs;
        }
        

        September 18th, 2013 at 8:42 pm

        • Excellent description and guide on how to remove the heading, Isabel. Thanks for the help!

          Craig, I tried your code to remove the tab for Additional Information using the following code:

          
          add_filter( ‘woocommerce_product_tabs’, ‘os_woo_remove_additional_information_tab’, 98);
          function os_woo_remove_additional_information_tab($tabs) {
          
          unset($tabs[‘additional_information’]);
          
          return $tabs;
          }
          
          

          but have recevied

          syntax error, unexpected ‘information’’ (T_STRING), expecting ‘]’

          in regards to the last line

          unset($tabs[‘additional_information’]);

          Any suggestions? I don’t really understand what is happening and am not savvy at coding.

          Thanks!

          January 15th, 2015 at 7:29 pm

          • Thank you. It appears that the only problem is that the code has “pretty formatted” single quotes. If you just replace the single quotes by typing in your own, the function should work. I edited Craig’s code above and wrapped it in a code format block, so now you should be able to copy and paste it without a problem.

            January 17th, 2015 at 1:39 pm

          • Thanks, Isabel. I tried the code, but it removed the entire Additional Information section instead of just the tab at the top. I was hoping to remove the tab but keep the info displayed.

            January 18th, 2015 at 4:00 pm

  3. Hi Isabel,

    Would you happen to know how to put a heading H1 tag on the category description on archive-product.php (woocommerce_archive_description)? I tried just placing around the php code but the woocommerce_archive_description seems to still output . Is there a hook/filter I can add to make it output as an ? Any help is appreciated.

    November 13th, 2013 at 11:43 am

    • Nevermind, just found this code. Add it to the function.php file and it allows you to enter HTML in the category description from wordpress admin section.

      foreach ( array( ‘pre_term_description’ ) as $filter ) {
      remove_filter( $filter, ‘wp_filter_kses’ );
      }

      foreach ( array( ‘term_description’ ) as $filter ) {
      remove_filter( $filter, ‘wp_kses_data’ );
      }

      November 13th, 2013 at 12:21 pm

  4. Hi Isabel! I’m bulding a WooCommerce site and I need the long description section for tables and bullets. I noticed that the homepage pulls from this field (which makes it look bad) and not the short description field which to me would make a lot more sense given the character limit. Can you please advise how I have the HP pull from the Short Description universally?

    January 5th, 2014 at 4:35 pm

  5. Great tips

    Thank Isabel ,

    May 20th, 2014 at 2:40 pm

  6. hi,

    I don’t think it is still working with today’s update.

    is it?

    Thanks…

    September 18th, 2014 at 11:38 am

    • Sorry for the delay. I just checked and it still works with WooCommerce 2.2.4.

      September 23rd, 2014 at 1:05 pm

  7. Hi
    This is exactly what I’m looking for.
    How do I do this so updating Woocommerce won’t overwrite it all the time?
    And where exactly is functions.php? Is that the file that lives inside a child theme? Sorry I’m a bit of a noob at the code level.
    Geoff

    November 20th, 2014 at 6:21 am

    • Your parent theme has a functions.php file. If you’re using a child theme, it will only have a functions.php file if you create one in the main folder of the child theme.

      Updating WooCommerce will not overwrite this code. Updating your parent theme will overwrite it if you’ve pasted this code in the parent’s theme functions.php.

      To avoid the overwrite, place the code in the child theme’s functions.php where it will remain even after updates. (See how to make a child theme)

      Another, easier, option is to use this plugin which lets you paste this code without modifying your theme files. The code will remain there even through updates. Hope that helps.

      November 21st, 2014 at 6:58 am

  8. Thanks! Still working on WooCommerce 2.3.8

    May 14th, 2015 at 5:06 am

  9. Thank you Isabel.

    I also wanted to remove “Reviews.” I got confused extending template, so I used CSS:

    .woocommerce #reviews #comments h2 { display: none; }
    

    Best wishes,
    Mitchell

    June 26th, 2015 at 10:18 am

  10. You snippet save my life! I was searching for it for a few hours without php knowledge. Now I adapt it to use with Additional Information tab heading too.

    If someone looking for it.

    /** 
     * Change on single product panel "Additional information tab heading"
     * since it already says "features" on tab.
     */
    add_filter('woocommerce_product_additional_information_heading',
    'isa_product_additional_information_heading');
     
    function isa_product_additional_information_heading() {
        return __('YOUR CUSTOM TITLE', 'woocommerce');
    }
    

    October 7th, 2016 at 4:51 am

  11. Hi,
    Your posts have been incredibly helpful. I’ve a quick question for you. Aside from removing the description and additional information tabs, do you know of a way to change the page name for a product? Currently I have a product called Gift Certificates. When the page is opened, it reveals two headers. One in the left hand side of the page and the other just above the Gift Certificate form field. On the Shop page, I was able to change one of the two headers so they are now unique, but I’ve been unable to change the Product page. Please see http://soul2soulhealer.wsbydesign.com/shop which will take you to the product page. I look forward to hearing from you.

    January 4th, 2017 at 11:46 pm

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]