New Landing How can we help? Themeforest Theme Support Uplift Change Product Tab Titles

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Uplift
  • #282628
    LeeSanders
    Member
    Post count: 10

    Hi Guys,

    Could you advise how I go about changing the titles of the tabs displayed on the product page?

    I currently have ‘Description’ and ‘Reviews’ as tabs under the product info, and all I want to do is change ‘Description’ to ‘Directions for Use’.

    #282635
    David Martin – Support
    Moderator
    Post count: 20834

    WooCommerce detail that here: https://docs.woocommerce.com/document/editing-product-data-tabs/.

    Install and activate the supplied child theme. Inside the functions.php file of the child theme add this:

    add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
    function woo_rename_tabs( $tabs ) {
    
    	$tabs['description']['title'] = __( 'More Information' );		// Rename the description tab
    	$tabs['reviews']['title'] = __( 'Ratings' );				// Rename the reviews tab
    	$tabs['additional_information']['title'] = __( 'Product Data' );	// Rename the additional information tab
    
    	return $tabs;
    
    }
    #282779
    LeeSanders
    Member
    Post count: 10

    Thanks David – Works great!

    #282852
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks t David 🙂 .
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register