Visa mastercard on checkout

How could be possible to put the visa and mastercard images on the checkout page like that ? thanks ! I am using the Pro theme

Hi There,

Please try adding this custom code under functions.php file locates in your child theme:

function paypal_checkout_icon() {

return 'https://www.paypalobjects.com/webstatic/mktg/logo/AM_mc_vs_dc_ae.jpg'; // write your own image URL here

}

add_filter( 'woocommerce_paypal_icon', 'paypal_checkout_icon' );

After that adding this custom CSS under Theme Options > CSS:

.woocommerce-account form .payment_methods label img, 
.woocommerce-checkout form .payment_methods label img {
    display: inline-block;
    width: 150px;
    margin-right: 5px;
}

input#payment_method_paypal {
    margin-top: 18px;
}

Hope it helps :slight_smile:

there is not changes into the checkout or the cart page :frowning:

Hi There,

Did you added the given code to the child theme’s functions.php files? It seems you don’t have a child theme or it was not active? Please make sure that your child theme is the one that is active.

How To Setup Child Themes

Thanks,

i have pasted it into the pro theme functions.php ( in order to double check if is going to work before activating the child pro theme ) . it must work isnot it ?

Hi @Borislav.VD,

It will also work however to prevent your changes to be overwritten after updates.

Let us know how it goes.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.