By default, WooCommerce products have three tabs labeled, Description, Additional Information, and Reviews. Some themes show these as links rather than tabs.
When you click on these tab links, they show a title for that section. So, the “Description” tab section will show a title of “Product Description.” The “Additional Information” tab section will show the title of “Additional Information” and the Reviews tab section will a title of “Reviews.”
Here is how you can change the tab link text for all 3 tabs on your WooCommerce products. This also shows you how to change or remove the heading titles for the “Product Description” and “Additional Information” tab sections.
(See how to add these code snippets.)
Here are 7 different examples for customizing and/or removing the text on the WooCommerce product tabs:
-
Change “Product Description” Heading Text
This code will change the “Product Description” heading title text to your own custom text.
Change line 7 where it says, YOUR PRODUCT DESCRIPTION TITLE, to your own title.
/** * Change the heading title on the "Product Description" tab section for single products. */ add_filter( 'woocommerce_product_description_heading', 'isa_product_description_heading' ); function isa_product_description_heading() { return 'YOUR PRODUCT DESCRIPTION TITLE'; }
-
Remove “Product Description” Heading Text
This will remove the “Product Description” heading title. You may want to remove the “Product Description” heading title altogether since it’s sort of redundant, since there is already a tab/link above it. So, to remove the “Product Description” heading title, use this code:
Note that this will not remove the tab/link; it only removes the heading title from within the section.
/** * Remove the "Product Description" heading from the single product Description tab section */ add_filter( 'woocommerce_product_description_heading', '__return_false' );
-
Change “Description” Tab Link Text
This will replace the tab link text for the “Description” tab link. It will change “Description” to your desired text. You must change
YOUR CUSTOM TEXT
on line 8 to your desired text./** * Change the Description tab link text for single products */ add_filter( 'woocommerce_product_description_tab_title', 'isa_wc_description_tab_link_text', 999, 2 ); function isa_wc_description_tab_link_text( $text, $tab_key ) { return esc_html( 'YOUR CUSTOM TEXT' ); }
-
Change “Additional Information” Heading Text
This will change the “Additional Information” heading title text to your own custom text.
Change line 7 where it says,
YOUR ADDITIONAL INFO TITLE
, to your own title./** * Change the heading on the Additional Information tab section title for single products. */ add_filter( 'woocommerce_product_additional_information_heading', 'isa_additional_info_heading' ); function isa_additional_info_heading() { return 'YOUR ADDITIONAL INFO TITLE'; }
-
Remove “Additional Information” Heading Text
This will remove the “Additional Information” heading title. You may want to remove the “Additional Information” heading title altogether since it’s sort of redundant, since there is already a tab/link above it with the same text. So, to remove the “Additional Information” heading title, use this code:
Note that this will not remove the tab/link; it only removes the heading title from within the section.
/** * Remove the "Additional Information" heading from the single product Additional Information tab section */ add_filter( 'woocommerce_product_additional_information_heading', '__return_false' );
-
Change “Additional Information” Tab Link Text
This will replace the tab link text for the “Additional Information” tab link. It will change “Additional Information” to your desired text. You must change
IMPORTANT DETAILS
on line 8 to your desired text./** * Change the "Additional Information" tab link text for single products */ add_filter( 'woocommerce_product_additional_information_tab_title', 'isa_wc_additional_info_tab_link_text', 999, 2 ); function isa_wc_additional_info_tab_link_text( $text, $tab_key ) { return esc_html( 'IMPORTANT DETAILS' ); }
-
Change “Reviews” Tab Link Text
This will replace the tab link text for the “Reviews” tab link. It will change “Reviews” to your desired text. You must change WHAT PEOPLE ARE SAYING on line 8 to your desired text.
/** * Change the "Reviews" tab link text for single products */ add_filter( 'woocommerce_product_reviews_tab_title', 'isa_wc_reviews_tab_link_text', 999, 2 ); function isa_wc_reviews_tab_link_text( $text, $tab_key ) { return esc_html( 'WHAT PEOPLE ARE SAYING' ); }
Julian
February 20th, 2013 at 2:16 am
Thanks very much for this simple and effective solution – I went with the remove it all together option and it worked perfectly!
Myles
May 21st, 2013 at 5:55 pm
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!
Isabel
May 22nd, 2013 at 12:20 am
Thanks. I have not used WooCommerce since last year, and I know they updated the entire plugin, but try:
If the
&
causes problems, spell out ‘and’, instead. Hope this helps.Craig Grella
September 18th, 2013 at 8:42 pm
Similarly, for removing tabs, use this:
Michael Blaskowsky
January 15th, 2015 at 7:29 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:
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!
Isabel
January 17th, 2015 at 1:39 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.
Michael Blaskowsky
January 18th, 2015 at 4:00 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.
Marcus
November 13th, 2013 at 11:43 am
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.
Marcus
November 13th, 2013 at 12:21 pm
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’ );
}
Roger
January 5th, 2014 at 4:35 pm
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?
bin
May 20th, 2014 at 2:40 pm
Great tips
Thank Isabel ,
Christophe
September 18th, 2014 at 11:38 am
hi,
I don’t think it is still working with today’s update.
is it?
Thanks…
Isabel
September 23rd, 2014 at 1:05 pm
Sorry for the delay. I just checked and it still works with WooCommerce 2.2.4.
Geoff
November 20th, 2014 at 6:21 am
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
Isabel
November 21st, 2014 at 6:58 am
Your parent theme has a
functions.php
file. If you’re using a child theme, it will only have afunctions.php
file if you create one in the main folder of the child theme. Updating WooCommerce will not overwrite the code if you place it in a child theme’sfunctions.php
. Please see 4 Ways To Add Custom Code To Your WordPress Website.Sam
May 14th, 2015 at 5:06 am
Thanks! Still working on WooCommerce 2.3.8
Mitchell
June 26th, 2015 at 10:18 am
Thank you Isabel.
I also wanted to remove “Reviews.” I got confused extending template, so I used CSS:
Best wishes,
Mitchell
Emily
October 7th, 2016 at 4:51 am
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.
Kimberly
January 4th, 2017 at 11:46 pm
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.
mrgamehendge
March 13th, 2017 at 4:17 pm
This is good information. I’m curious though if you know how to make the additional information tab open by default when landing on the page. I’m not sure if this is theme specific or woocommerce specific. Any ideas would be helpful.
Thanks!!!
thomas
May 8th, 2017 at 11:55 am
I will send you the greatest “thanks” from Tokyo.
Mit
May 17th, 2017 at 4:09 pm
Thank you so much for the helpful Post. My theme author gave me several codes on how to remove the DESCRIPTION text and didn’t work. Luckily I found this Post, and it works for me.
My theme author couldn’t give me code to change the fonts of texts in the Product Description section. The default font of the texts/words in the Product Description section in my theme is very small, and it is hard to read. I want to change it a little bit bigger. Do you have any idea on how to change the font of texts in the Product Description section?
Thank you again for the helpful Post.
Christophe
June 2nd, 2017 at 5:24 pm
Hi Isabel,
I’ve tried to adapt your code to change the title of related product but it doesn’t work. Thanks for your help, if you have the time. 😉
Isabel
June 5th, 2017 at 7:15 pm
Hi. This should work to change the WooCommerce “Related products’ title (change “Ouvrages apparentés” on line 8 as desired):
anon
July 31st, 2018 at 2:27 pm
Thx Isabel! Worked perfectly.
jan
August 2nd, 2017 at 2:55 pm
I tried your code but it is not working to get rid of the tabs. I tried Mitchell’s code and was able to remove the header duplication – that will work for me. Thanks!
Daryl Isaacs
September 26th, 2017 at 7:17 am
I added your function (woocommerce) and it changes the product descriptions tab titles from the default…. and I alsoo added a small bit…
The problem is, that it does not separate new title text like this:
★ Product Information
★ Ingredients
★ Sizes
I’ve tried \n and \r and and char(13) to get them to stack……
But Im running into a dead-end. Is there a way to do this other than ( .”\n”. ) ? and even that does not work 🙁
Isabel
October 3rd, 2017 at 11:59 am
Example #3 will work. You have to use the
woocommerce_product_description_tab_title
filter, as in #3 above, if you want to override the HTML escaping done by WooCommerce. The filter in #3 allows you to insert HTML. You can get your desired title by changing line 8 in example 3 to this:Daryl Isaacs
October 8th, 2017 at 3:36 pm
Yes…
yours is similar to the results I came up with:
I figured out how to use the “return” instead….
Tried yours and I got the same result, thank you for the reply.
Ps I found the css wrapeer and edited it to reflect the site fonts and sizing, color.
swati
December 2nd, 2017 at 2:14 am
Excellent description and guide.
I like to add one line like “Colour is white” in Additional info tab. Could you provide me code?
Thanks.
Chris
September 20th, 2019 at 5:47 am
Thank you for this resource. Thanks for the code snippets and leaving out the guesswork 🙂
Isabel
September 24th, 2019 at 1:11 pm
Glad to help.