Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

In wordpress woocommerce under single product page, i want to change the default tab headings:

Change "Description" to Features and Change "Additional Information" to "Specifications"

Under which PHP file should i make these changes, for it to take effect ?

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
164 views
Welcome To Ask or Share your Answers For Others

1 Answer

Here is how you would rename the tabs (just add to your theme functions.php file) - This is valid for older versions of WooCommerce per their documentation:

add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {

    $tabs['description']['title'] = __( 'Features' );       // Rename the description tab
    $tabs['additional_information']['title'] = __( 'Specifications' );  // Rename the additional information tab

    return $tabs;

}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...