Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created October 1, 2015 11:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/2fa1ccd4fb3defce106f to your computer and use it in GitHub Desktop.
Save strangerstudios/2fa1ccd4fb3defce106f to your computer and use it in GitHub Desktop.
Adds credit card logos and a PayPal logo to the "Select Payment Method" box on membership checkout.
/* CSS Document */
.pmpro-checkout #pmpro_payment_method span {
display: inline-block;
}
.pmpro-checkout #pmpro_payment_method span a {
background-position: bottom left;
background-repeat: no-repeat;
background-size: contain;
border: none;
display: inline-block;
font-size: 16px;
font-size: 1.6rem;
padding-bottom: 80px;
width: 90%;
}
.pmpro-checkout span.gateway_authorizenet,
.pmpro-checkout span.gateway_braintree,
.pmpro-checkout span.gateway_cybersource,
.pmpro-checkout span.gateway_paypal,
.pmpro-checkout span.gateway_stripe,
.pmpro-checkout span.gateway_twocheckout {
width: 60%;
}
.pmpro-checkout span.gateway_paypalexpress {
width: 35%;
}
.pmpro-checkout span.gateway_authorizenet a,
.pmpro-checkout span.gateway_braintree a,
.pmpro-checkout span.gateway_cybersource a,
.pmpro-checkout span.gateway_paypal a,
.pmpro-checkout span.gateway_stripe a,
.pmpro-checkout span.gateway_twocheckout a {
background-image: url(../images/cc-horizontal.jpg);
}
.pmpro-checkout span.gateway_paypalexpress a {
background-image: url(../images/paypal.jpg);
}
@media (max-width:768px) {
.pmpro-checkout #pmpro_payment_method span {display: block; width: 100%; }
}
@kimcoleman
Copy link

There is an updated version of this code recipe here: https://gist.github.com/kimcoleman/58dc2653bde9156d98dc3b439f4faa2b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment