Pricing Process Reviews Contact

Divi Guy blog

How to change the “Proceed to PayPal” button text on the WooCommerce checkout screen

The default PayPal buttons says “Proceed to PayPal”. You may want to change this to something else like “Continue to Pay” or whatever you like. Add the following PHP code to your child theme functions.php file.

add_filter( 'gettext', 'custom_paypal_button_text', 20, 3 );
function custom_paypal_button_text( $translated_text, $text, $domain ) {
	switch ( $translated_text ) {
		case 'Proceed to PayPal' :
			$translated_text = __( 'YOUR NEW BUTTON TEXT', 'woocommerce' );
			break;
	}
	return $translated_text;
}

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