Waqas

I hope you enjoy reading this blog post. If you want my team to do WooCommerce Maintenance for you, click here.

How to rename tabs on product page in Woocommerce ?

In this tutorial we’ll learn how to rename a tab on product page in woocommerce. You don’t have to dig into the code of default template files to achieve this, actually we can achieve this by using one of the woocommerce default hooks.

This will be the default single product screen:

Our team at Themelocation is comprised of WordPress developers of high expertise

  • We can maintain, support and manage your single, or all your clients, website with dedication
  • Our skills are at your disposal.

Book a Call

woocommerceNow lets say i want to rename the tab titled description on the page to lets say More Info.

To do this place the following lines of code at the end of functions.php file

add_filter( 'woocommerce_product_tabs', 'woo_rename_tab', 98);

function woo_rename_tab($tabs) {

$tabs['description']['title'] = 'More info';

return $tabs;

}

Replace the text with the text you want to rename and save the file.

You can access functions.php file here:

woocommerceNow refresh the page and see the change.

woocommerce

 

Waqas

I hope you enjoy reading this blog post. If you want my team to do WooCommerce Maintenance for you, click here.

Leave a Comment

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