Shopify themes, liquid, logos, and UX
How do I set up a section on my page to show the payment method of the website ?
Hi,
On which theme you are working on ?
In which form you want to show image form ? or else
example :
My theme is Brooklyn now.And I want to display the payment method in a conspicuous position, for example, give it a special location on the homepage to better display it.
Hi, follow this !
Enable payment icons in your footer
The first step of the customization is to enable the payment icons in your footer: Go to the theme editor. Click Footer. Check the Show payment icons checkbox. Click Save.
Edit the code for your payment icons
In this step, you will change the way that payment icons are assigned to your footer. By default, your theme shows the icons that are associated with the payment gateway you have enabled in the payment settings section of your admin. With this customization, you will manually add or remove the payment icons that you want to display.
To edit the code for your payment icons:
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.
In the Sections directory, click footer.liquid. If your theme doesn't include this file, then click theme.liquid in the Layout directory.
Find the following code in the file:
{% for type in shop.enabled_payment_types %}
Replace it with:
{% assign enabled_payment_types = 'visa,master,american_express,paypal' | remove: ' ' | split: ',' %}
{% for type in enabled_payment_types %}
Thanks.But I don’t want to add or delete the payment icon, I just want to change the position of the displayed icon by default.
Thanks,this problem was solved
Ok Good.
Please ask for any other query . Don't hesitate!
Have a nice Day 🙂
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024