Changing Paypal logo in woocommerce checkout
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
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.
Replies (5)
-
September 17, 2019 at 9:09 pm
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
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.
-
September 18, 2019 at 11:03 am
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
Screenshot 2
Let us know if you have any questions
Best Regards
-
September 18, 2019 at 2:31 pmThis reply has been marked as private.
-
September 18, 2019 at 4:21 pm
Hi Bob,
Could you mail us your website credentials so that we can have a look?
You can mail us your credentials at support@spiraclethemes.comBest Regards
-
September 18, 2019 at 10:16 pm
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.
-
September 19, 2019 at 4:51 am
Good to know that you’ve resolved it. You are welcome 🙂
Best Regards