Changing Paypal logo in woocommerce checkout

Bob B 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

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.

Replies (5)

  1. Bob B 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

    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.

  2. Spiracle Themes 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
    View Image 1

    Screenshot 2
    View Image 2

    Let us know if you have any questions

    Best Regards

  3. Bob B September 18, 2019 at 2:31 pm
    This reply has been marked as private.
  4. Spiracle Themes 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.com

    Best Regards

  5. Bob B 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.

  6. Spiracle Themes September 19, 2019 at 4:51 am

    Good to know that you’ve resolved it. You are welcome 🙂

    Best Regards

Post a Reply

Reply To: Reply #1772 in Changing Paypal logo in woocommerce checkout
Your information:




Cancel