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
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
IMAGE ICON
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"
ADJUST SOME MORE CODE
Go back to your footer.liquid code and "find" "icon-fallback-text", and paste this code below the {% endfor %} code,
<li>
<img src="yourURL"/>
</li>
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).
@rawacefexes
Hello,
Please Refer to This
User | RANK |
---|---|
64 | |
58 | |
48 | |
42 | |
42 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023