Single Product – Rename Product Tab Text

Woocommerce Single Product Page Snippet

The below snippet allows you to change the name of the single product page tabs. The example includes how to change the description tab.

Implementation

1. Either code and paste the code into your themes functions.php or child theme
2. If you are not that technical then install the WordPress Snippets plugin

/**
 * @snippet     WooCommerce Text Replace: Change / Rename product tab text
 * @code        https://techskilled.co.uk/snippets/woocommerce-single-product-change-rename-product-tab-text
 * @author      https://techskilled.co.uk
 */

function techskilled_renameproduct_tab($tabs) {

 $tabs['description']['title'] = 'Extra Information';

 return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'techskilled_renameproduct_tab', 98);

View on snippet on GitHub.

NEED HELP?

If you are struggling to implement the SVG snippet then we can help from £9.99 – use our contact form below and we will get straight back to you!

HELP ME IMPLEMENT THIS SNIPPET

Leave a comment

Shares