How to change "SKU" to a custom text in WordPress Woocommerce?

Mourad Blil picture Mourad Blil · Jan 18, 2017 · Viewed 10.9k times · Source

I want to change the SKU text in Woocommerce to a custom text. Can anyone please tell me how can I achieve this?

Answer

Raunak Gupta picture Raunak Gupta · Jan 18, 2017

It can be done by many ways one of the way is by using WooCommerce template override.

Copy this file

/wp-content/plugins/woocommerce/templates/single-product/meta.php

and paste it into your active theme directory some thing like this

/wp-content/themes/activetheme/woocommerce/single-product/meta.php.

And replace this

<?php _e( 'SKU:', 'woocommerce' ); ?>

by

<?php _e( 'My Text:', 'woocommerce' ); ?>

I have tested it, and it is working.

Hop this helps!