Adding Afterpay Icon Into Footer (Or Other Icons)

Adding Afterpay Icon Into Footer (Or Other Icons)

3 0 0

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


Open up and find the footer.liquid found in your Customize theme code sections.
then find one of your loaded payment options (ie visa) in the code script
here you will notice a string of text like this:
{% 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: ',' %}

ADD IN TEXT: just ad in your text for the missing payment (in this case im using afterpay) so it now looks like this:
{% 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


From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.
To get your button on your site we are going to upload the social media icon image to your theme. Click the Assets folder to open it.
Scroll down to and click the Add a new asset link.
Choose the icons file on your computer and click Upload asset.
Copy the source code - and put it aside into notepad or something (right click on the image displayed and click "copy source code"

Go back to your footer.liquid code and "find" "icon-fallback-text", and paste this code below the {% endfor %} code,

<img src="yourURL"/>


Delete the part between the quotes and paste the stored "source code" link your grabbed before
this will insert the image in the default size (which is sometimes huge)
i actually found it easier to "resave" and "re-upload" the logo at a reduced size - ie take a snapshop of your current footer icons and in paint or something resize your logo to the same one. You will have to delete and reupload to your assesets - and fix the pased URL code above to get the right sizing.
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).

Reply 1 (1)

Shopify Partner
15951 2385 3095

Please Refer to This

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free