Naser Mohd Baig
Naser Mohd Baig

Reputation: 53

Need help in editing a tab in Woocommerce product page

I am trying to change the name of a tab in product page of woocommerce to a different name.

I am trying to find which PHP file has that particular code but I am unable to do that. Have also used plugins like WhatTheFile (it said the product page is loaded from single-product.php, but I couldn't find the html to edit there) and String Locator and they couldn't help even. Please have a look at this video I made and you will better understand my problem.

https://www.dropbox.com/s/bruhb2n83lhfnp6/Code.mp4?dl=0

I am using G5Plus April theme

Thank you

Upvotes: 0

Views: 401

Answers (1)

Sunil Dora
Sunil Dora

Reputation: 1472

you can add code like this in functions.php of your theme to customize the product description tab title. For more details, Link 1, Link 2

add_filter( 'woocommerce_product_tabs', 'woo_customize_tabs', 100, 1 );
function woo_customize_tabs( $tabs ) {
   $tabs['description']['title'] = __( 'More Information' ); // Rename the description tab

   return $tabs;
}

Hope this will helps you.

Upvotes: 5

Related Questions