• Resolved esby

    (@esby)


    Hello,
    i am trying to replace to default paypal logo on the checkout with a custom one. (i want to remove the credit cards in the picture.)

    i tried snippets found on google:

    add_filter( 'woocommerce_paypal_icon', 'replace_paypal_icon');
      
    function replace_paypal_icon() {
       return 'my image link was placed here.png';
    }

    But it does not seem to work, the logo doesnt change anything.

    I deactivated all other plugins, flushed the cache etc. but it does not work.
    Is that snippet outdated or am i missing something?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    The code is indeed correct. You need to replace the string my image link was placed here.png with the image URL of course.

    Depending on where the code is added it might or might not work. Make sure it is at the end of your theme’s functions.php file. If you are in a child theme you might have to use a hook on init to add your filter.

    Also, this is for PayPal Standard only. If you use another PayPal plugin it will not be affected by this code.

    Thread Starter esby

    (@esby)

    Hello,
    it was a problem with a plugin, i deactivated it and now it works fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Paypal logo on checkout’ is closed to new replies.