I added the below code to show the credit card and paypal icon in checkout page as mention in this link https://theme.co/apex/forums/topic/how-to-show-paypal-icon-and-other-payment-icons-on-checkout-page/
.woocommerce-account .checkout .payment_methods label img, .woocommerce-account .form-edit-address .payment_methods label img, .woocommerce-checkout .checkout .payment_methods label img, .woocommerce-checkout .form-edit-address .payment_methods label img {
display: inline !important;
}
But what shows up are old icons. Paypal has a more latest icon which shows the credit cards. I tried all different approaches like addding this on functions.php
function isa_extended_paypal_icon() {
// picture of accepted credit card icons for PayPal payments
return get_stylesheet_directory_uri() . ‘/images/paypal-payments.jpg’;
}
add_filter( ‘woocommerce_paypal_icon’, ‘isa_extended_paypal_icon’ );
Second option
li.payment_method_gestpay-starter
label:before {
content: url(“http://site url/wp-content/plugins/woocommerce/includes/gateways/simplify-commerce/assets/images/cards.png”);
vertical-align: middle;
}
And a few more options but nothing seems to work. I want to also add the new credit card icons.
Thanks