Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kimcoleman/58dc2653bde9156d98dc3b439f4faa2b to your computer and use it in GitHub Desktop.
Save kimcoleman/58dc2653bde9156d98dc3b439f4faa2b to your computer and use it in GitHub Desktop.
Legacy for PMPro pre-v3.1. Not compatible with PMPro v3.1+. Adds credit card logos and a PayPal logo to the "Select Payment Method" box on membership checkout.
/* CSS Document */
#pmpro_payment_method span a {
background-position: left bottom;
background-size: contain;
background-repeat: no-repeat;
display: inline-block;
margin-left: 1%;
max-width: 300px;
padding-bottom: 60px;
text-align: left;
width: 90%;
}
#pmpro_payment_method span.gateway_paypalexpress {
margin: 2em 0 0 0;
}
#pmpro_payment_method span.gateway_authorizenet a,
#pmpro_payment_method span.gateway_braintree a,
#pmpro_payment_method span.gateway_cybersource a,
#pmpro_payment_method span.gateway_paypal a,
#pmpro_payment_method span.gateway_stripe a,
#pmpro_payment_method span.gateway_twocheckout a {
background-image: url(images/pay-with-credit-cards.png);
}
#pmpro_payment_method span.gateway_paypalexpress a {
background-image: url(images/pay-with-paypal.png);
}
@media (min-width: 769px) {
#pmpro_payment_method .pmpro_checkout-fields {
column-gap: 2em;
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
#pmpro_payment_method span {
flex: 1;
}
#pmpro_payment_method span.gateway_paypalexpress {
margin-top: 0;
}
}
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Add Credit Cards and PayPal Logos to Checkout when Using PayPal Gateway or Add PayPal Express Add On" at Paid Memberships Pro here: https://www.paidmembershipspro.com/add-credit-cards-and-paypal-logos-to-checkout-when-using-paypal-gateway-or-add-paypal-express-add-on/

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