How to change “Create an account” text in WooCommerce / WordPress

TIPS

May 25, 2019 | WooCommerce Tips | 0 comments

If you want to change the text that appears on things like the WooCommerce “create an account”. You can use the same code and replace the variable “woocommerce” for other items. Try the simple code below and it may work for you. Add the function below to your child theme functions.php file. [php] // change text from Create an account? function my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘Create an account?’ : $translated_text = __( ‘Create an account to receive reward points and other customer benefits’, ‘woocommerce’ ); break; } return $translated_text; } add_filter( ‘gettext’, ‘my_text_strings’, 20, 3 ); [/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields