• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Change card icons position in Easy Digital Downloads checkout

Learn in this tutorial how to reposition card icons in Easy Digital Downloads (EDD) checkout using code.

Easy Digital Downloads allows you to add payment card icons to the checkout page.

cards-checkout-edd

This is something that is commonly used in ecommerce plugins to convey security to the customer at checkout.

By default, the icons are displayed above the section called “Personal information”.

Default checkout page with icons at the top
Default checkout page with icons at the top.

But it might be more interesting to display them just before the credit card form, don’t you think?

Show icons just before the card fields
Show icons just before the card fields.

Interested? Well, here’s how to change the position of the icons.

Snippet to change credit card icons position in Easy Digital Downloads

Add the following code at the end of functions.php or in your functionality plugin:

To see this and another 847 code snippets of this website, login or subscribe here.

It’s as simple as that.

Thanks to this snippet you place the card icons just before the fields where the customer must enter the credit card data:

Show icons just before the card fields
Show icons just before the card fields.

Conclusions

Do you want to change the position of the card icons in the Easy Digital Downloads checkout? Now you know how to do it easily using code.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

CPT Easy Digital Downloads PHP

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?