• Resolved spyrosg

    (@spyrosg)


    Hello,thanks for your great plugin.I am using it for 2 months now with no problems at all suddenly i have noticed that the card icons..visa mastercard etc became black and white instead of their normal colour as they were before.I havent changed anything so its kinda weird.Any suggestions?Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • In the new version it is black and white and I guess you forgot to delete the cash after updating and that is why you realized it now. So normal behavior.

    Thread Starter spyrosg

    (@spyrosg)

    Thanks for your answer.I really dont like it being black and white,is there any way to get the icons in colour?

    This issue is already discussed here somewhere. Just search for icons or coloured icons. They have already given some advices.

    Thread Starter spyrosg

    (@spyrosg)

    Here is the solution for anyone that is struggling to get your icons back in colour add the following code in your functions
    `add_filter( ‘wc_stripe_payment_icons’, ‘change_my_icons’ );
    function change_my_icons( $icons ) {
    // var_dump( $icons ); to show all possible icons to change.
    $icons[‘visa’] = ‘‘;
    $icons[‘mastercard’] = ‘‘;
    return $icons;
    }

    Thread Starter spyrosg

    (@spyrosg)

    Here is the solution for anyone that is struggling to get your icons back in colour add the following code in your functions

    add_filter( 'wc_stripe_payment_icons', 'change_my_icons' );
    function change_my_icons( $icons ) {
            // var_dump( $icons ); to show all possible icons to change.
        $icons['visa'] = '<img src="https://www.example.com/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/visa.png" />';
        $icons['mastercard'] = '<img src="www.example.com/wp-content/plugins/woocommerce/assets/images/icons/credit-cards/mastercard.png" />';
       return $icons;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Strange change’ is closed to new replies.