WooCommerce: Rename Product Description Tab Label @ Single Product Page

Product tabs show on the single product page, right below the image gallery. Tab labels are “Description”, “Additional Information”, “Reviews” by default – but what if you wish to rename them into something more relevant to your users?

Here’s a simple PHP snippet you can copy/paste into your child theme’s functions.php file to immediately change the “Description” tab name – enjoy ๐Ÿ™‚

Editing Product Tab Names @ WooCommerce Single Product Page

Snippet (PHP): Rename Description Product Tab Name @ WooCommerce Single Product Page

/**
 * @snippet       Rename Description Product Tab Label @ WooCommerce Single Product
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/
 */ 

add_filter( 'woocommerce_product_description_tab_title', 'bbloomer_rename_description_product_tab_label' );

function bbloomer_rename_description_product_tab_label() {
    return 'New Name';
}

Advanced Plugin: WooCommerce Product Tabs

The above code snippet will let you edit the labels of the tabs on the WooCommerce product page. For a code-free solution, I found a plugin that lets you do the same thing, as well as having features like adding an icon to each tab label, and creating additional custom tabs.

You can do all this with the WooCommerce Product Tabs plugin from Barn2. Its settings page lets you edit the label for the Description, Additional Information and Reviews tabs to anything you like. You can select an icon to display alongside each label, or hide the tab completely.

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

24 thoughts on “WooCommerce: Rename Product Description Tab Label @ Single Product Page

  1. Hi how can I make this change for just one particular product? In both the tab and heading? Many thanks man!

    1. Hi Steve, I suggest you take a look at “conditional logic”: https://businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/. Enjoy ๐Ÿ™‚

  2. 2022, and still works on 6.1.0 ! Thks a lot

  3. I tried 2 other solutions provided by wordpress and neither worked. Your snipped is perfect! Thank you.

  4. Thank you very much!! The code is still working perfectly!!!

    1. Yay!

  5. Thank you, Rodolfo, It’s easy to implement and working like a charm.

    1. Nice!

  6. This code does not work on woocommerce 3.8.1 anymore.. I searched online and found that the following works for my site:

    // Rename a default WooCommerce tab
    add_filter( 'woocommerce_product_tabs', 'yikes_rename_default_woocommerce_tabs', 98, 1 );
    
    function yikes_rename_default_woocommerce_tabs( $tabs ) {
    
    	if ( isset( $tabs['description'] ) ) {
    		$tabs['description']['title'] = 'My Own Text';
    	}
    
    	return $tabs;
    }
    

    Hope this helps someone out there using the latest woocommerce 3.8

    1. Thank you!

      1. Just wanted to say, I’m on v4.0.1 of WooCommerce and the original code posted at the top of the page seems to be working fine for me. The mod I created for the Additional Info tab below seems ok too…?

        1. Great!

          1. Code is above works with 4.+ version.

            1. Cool

  7. Hey, thanks for this. Just wanted to say that the code for renaming tabs on the WooCommerce website (https://docs.woocommerce.com/document/editing-product-data-tabs/) had a bug. It would force the Additional Information tab to appear on every page even when a product had no additional information. So I added your code to my functions file, but then I also copied it and modified it slightly to make it rename the Additional Information tab as well. I put that code right under your code. Here’s what it is:

    add_filter( 'woocommerce_product_additional_information_tab_title', 'bbloomer_rename_additional_information_product_tab_label' );
     
    function bbloomer_rename_additional_information_product_tab_label() {
        return 'New Name';
    }
    

    I’m guessing it will also work for the Reviews tab.

    1. Nice!

  8. Just what I needed! Grazie Rodolfo!

    1. Prego ๐Ÿ™‚

  9. How can i change the label which is under the tab like “Description” ?
    The above snippet is only change the tab title not content title.

  10. How should the code look if I want to change the Additional information tab to Size Options?

    1. Hey Carole, thanks for your comment! Instead of “woocommerce_product_description_tab_title” try using “woocommerce_product_additional_information_tab_title”

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 *