Shopify themes, liquid, logos, and UX
This is to add in new icons or payment methods into your footer (if not included in the default shopify payment settings)
for this example i have used AfterPay
EDIT CODE
{% assign payment_icons_available = ',amazon_payments,american_express,apple_pay,bitcoin,cirrus,dankort,diners_club,discover,dogecoin,dwolla,forbrugsforeningen,interac,jcb,litecoin,maestro,master,paypal,visa' | split: ',' %}
{% assign payment_icons_available = 'afterpay,amazon_payments,american_express,apple_pay,bitcoin,cirrus,dankort,diners_club,discover,dogecoin,dwolla,forbrugsforeningen,interac,jcb,litecoin,maestro,master,paypal,visa' | split: ',' %}
Now this is just the "code part" that will tell your footer menue what to do with the icons etc. You will also need to load the footer icon for your missing payment option next
IMAGE ICON
ADJUST SOME MORE CODE
<li>
<img src="yourURL"/>
</li>
hopefully i have made sence (sorry is a bit of hacking and code from all over the place, i managed to sort of glue togheter).
Solved! Go to the solution
This is an accepted solution.
OK I found a solution
1. Please go to the editor > footer.liquid
2. Find this bit of code :
{%- capture payment_icon_markup -%}
{%- if show_payment_icons -%}
<div class="grid__item site-footer__payment-icons">
<span class="visually-hidden">{{ 'general.payment.method' | t }}</span>
<ul class="payment-icons list--inline site-footer__icon-list">
{%- for type in shop.enabled_payment_types -%}
<li class="payment-icon">
{{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
</li>
{%- endfor -%}
3. and add this line of code after the endfor
<li class="payment-icon" >
<img src="https://cdn.shopify.com/s/files/1/1693/6097/t/136/assets/icon-afterpay.svg?v=4891203826450230660" alt="afterpay">
</li>
4. Now you may see that the image is small so we now have to make it bigger with CSS, go to the themeliquid
5.
Copy below
#shopify-section-footer > footer > div:nth-child(3) > div > div.grid__item.small--hide.one-half.site-footer-item-center-vertically > div > ul > li:nth-child(6) > img{
width: 100px;
height: 70px;
}
6. change width and height to your liking
User | RANK |
---|---|
68 | |
65 | |
63 | |
53 | |
47 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023