Shopify themes, liquid, logos, and UX
Hi everyone,
I'm currently using the Xtra theme for my Shopify store and I’m trying to display payment icons on my site. The theme developers mentioned that the icons will automatically display if I’m using Shopify Payments. However, since I’m using Stripe instead, they advised me that I’ll need to modify the theme code to display the icons.
Could anyone guide me on what specific code changes I need to make, or if there’s a better way to go about this?
Thanks in advance for your help!
Solved! Go to the solution
This is an accepted solution.
<ul class="l4pm box">
<ul class="l4pm box">
<li>
<img width="38" height="24" src="PLACE THE URL OF THE IMAGE HERE" />
</li>
</ul>
This is an accepted solution.
<ul class="l4pm box">
<ul class="l4pm box">
<li>
<img width="38" height="24" src="PLACE THE URL OF THE IMAGE HERE" />
</li>
</ul>
Hi @htmlBurger
Thank you for your response! If I may ask, will uploading a picture make the payment icons look more genuine, similar to the ones that come with Shopify Payments? Or will they appear more generic, like when using a third-party app?
I’ve done something similar before with AVADA in the Dawn theme, and it ended up looking like the attached screenshot,
The other screenshot with the dark black background is from a different website, and I believe it uses Shopify Payments, which is why the icons look more integrated.
Thanks again for your help!
Hi @EagleHunted
It really depends on the images you upload.
I suggest you try to implement this and see how it looks. After that, if any updates are required we can continue from there.
However, when you make the changes, make sure you add the updates on a copy of the live theme, so if anything goes wrong your live theme is unchanged.
Hi @htmlBurger
Thank you for your suggestion! Would it be possible for you to provide the full code to try for the payment icons, rather than uploading an image? The theme developer only shared the Shopify documentation with me here, but I’m hoping to explore a solution with the actual code.
I really appreciate your help and guidance on this!
Kind regards,
Sure, please try this code:
<ul class="l4pm box">
{%- for type in shop.enabled_payment_types -%}
<li>
{{- type | payment_type_svg_tag -}}
</li>
{%- endfor -%}
</ul>
Let me know of the outcome.
Hi @htmlBurger
Thank you so much for your assistance, I sent it to the person who helped me with designing my website and she used the first method.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025