Soma Pro Theme Help Premium theme

Changing Paypal logo in woocommerce checkout

BB Started by Bob B · September 17, 2019 at 9:09 pm · 5 replies 1 voice Last reply 6 years, 10 months ago
BB
Bob B Original poster Member
#1

Hi

Am once again at a loss. I want to change the paypal image at checkout from the simple paypal icon to this one with credit cards displayed

Desired PayPal Logo

I have tried to follow instructions found in lots of places on the web, including woocommerce docs to no avail. Here’s what I’ve done.
* Uploaded the jpg file into the media library.
* added the following code to the end of the functions.php file for the somapro theme.

function my_new_paypal_icon() {
return ‘https://alanonla.store/wp-content/uploads/2019/09/paypal-payments.jpg’;
}
add_filter( ‘woocommerce_paypal_icon’, ‘my_new_paypal_icon’ );

No joy, didn’t work. Nothing changed. I was surprised because there were at least a dozen posts including woocommerce docs that described how to do this and I’m sure that I followed instructions to the letter.

ST
Spiracle Themes Original poster
#2

Hi Bob,

It’s very strange. We have tried the same code and its working. The only thing we did is we changed the single quote ie

function my_new_paypal_icon() {
    return 'https://alanonla.store/wp-content/uploads/2019/09/paypal-payments.jpg';
}
add_filter( 'woocommerce_paypal_icon', 'my_new_paypal_icon' );

We are attaching the screenshot here. Please check

Screenshot 1
View Image 1

Screenshot 2
View Image 2

Let us know if you have any questions

Best Regards

BB
Bob B Original poster
#5

I figured it out. I had activated the plugin for woocommerce paypal express checkout. Once I turned that off to use just PayPal Standard everything settled down. It’s now working exactly as I wanted, and the desired credit card icons are now visible

Thank you for your help. Once I knew that what I’d done was correct, I was able to look at other things.

Post a reply

Join the conversation. Be kind — this is a public forum.

Replying to Changing Paypal logo in woocommerce checkout

By posting, your reply becomes public (unless marked private).