Last active
October 18, 2024 07:15
-
-
Save webtoffee-git/6154cfad7263a351069aba346b4d21e1 to your computer and use it in GitHub Desktop.
Stripe card icon customisation - By WebToffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Do not copy this line of code | |
add_action("wp_footer", "wt_customize_stripe_icons"); | |
function wt_customize_stripe_icons(){ | |
?><style type="text/css"> | |
#payment .payment_methods li img { | |
float: right; | |
} | |
@media only screen and (max-width: 480px) { | |
.woocommerce-checkout .wc_payment_methods.payment_methods.methods li.payment_method_eh_stripe_pay label img { | |
max-width: 10%; | |
} | |
} | |
</style><?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment