Appearance
Payment Icons β
IMPORTANT
The payment icons displayed accross your theme are automatically determined by:
- Your storeβs payment settings.
- The customerβs region and currency.
Customize payment icons β
If you want to:
- Add more payment icons without altering your storeβs payment settings.
- Add a custom payment service icon not officially supported by Shopify.
You can achieve this by editing your theme code.
Follow these steps to customize payment icons: β
From your Shopify admin, go to
Online Store β Themes
.Find the theme you want to edit, and then click β’β’β’ and Edit code
In the
snippets
directory, openinc-payment-icons.liquid
file.Find the following code in the file:
liquid{%- liquid for type in shop.enabled_payment_types echo type | payment_type_svg_tag: class: 'payment-icon' endfor -%}
Replace it with:
liquid{%- liquid assign custom_payment_types = "afterpay,klarna,affirm" | split: "," assign shop_payment_types = shop.enabled_payment_types | concat: custom_payment_types for type in shop_payment_types echo type | payment_type_svg_tag: class: 'payment-icon' endfor -%}
1
2
3
4
5
6
7In the code you pasted, on
line 2
, you'll see a list of payment providers:"afterpay,klarna,affirm"
TIP
This list specifies the additional payment icons that will appear on your online store. You can modify this list to include the payment providers you want to display.
For popular providers: β
Refer to the "Common Providers" tab for a curated list of the most widely used payment providers.
For all providers: β
Use the "All Available Providers" tab to explore a complete list of payment providers you can include.
Both tabs can help you choose the providers you need to display on your store.
Replace the current providers (
afterpay,klarna,affirm
) with the ones you want, separating each with a comma. For example:"paypal,applepay,googlepay"
Save your changes to display the selected icons on your store.