Pricing Process Reviews Contact

Divi Guy blog

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

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.

// 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 );

Need a hand?

Need help with your Divi website?

Book a Divi consultation and we can fix it together over Zoom, or ask for an estimate for bigger jobs.

0 Comments

Submit a Comment

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

Search

Browse

More tips

Got a question?

Ask me anything

Stuck on something in Divi or WordPress? Ask away and I will reply by email, usually within 24 hours.

Ask a Question

Tell me about your project. The more details the better.

"*" indicates required fields

Make a payment

Got an invoice?

Pay an invoice, a deposit or a tip in about a minute. Card or PayPal, secure checkout, and I never see your card number.

Make a payment