Why aren't images showing in my custom liquid code?

Solved

Why aren't images showing in my custom liquid code?

ali2787
Tourist
8 0 1

I wrote this code in "custom liquid" for my footer... I know its super basic but..
Why aren't these images showing up?

ali2787_0-1712168916071.png

 

<ul class="page-width" style="list-style-type:none;font-size:12px;">

     <li><img src="https://imgur.com/0HUGPNn" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="IG LINK" style="color:white">Instagram</a></li>

     <li><img src="https://imgur.com/gDWKJHl" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="FACEBOOK LINK" style="color:white">Facebook</a></li>

     <li><img src="https://imgur.com/VqsK3Qi" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="X LINK" style="color:white">Twitter</a></li>

</ul>

 

Accepted Solution (1)

SymmetryMike
Shopify Partner
32 6 3

This is an accepted solution.

Hey Ali,

 

You need to put the image files in the src, those are links to the webpage where the images is displayed! Right click and "copy image address". Additionally you can download the images and upload them onto Shopify and use the CDN links. That will be faster and will load more reliably!

 

Here this should work.

<ul class="page-width" style="list-style-type:none;font-size:12px;">

     <li><img src="https://i.imgur.com/0HUGPNn.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="IG LINK" style="color:white">Instagram</a></li>

     <li><img src="https://i.imgur.com/gDWKJHl.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="FACEBOOK LINK" style="color:white">Facebook</a></li>

     <li><img src="https://i.imgur.com/VqsK3Qi.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="X LINK" style="color:white">Twitter</a></li>

</ul>

 

Happy coding!

Mike Kiss

@ symmetrycommerce.com we build integrations, websites and Shopify solutions.

View solution in original post

Replies 2 (2)

SymmetryMike
Shopify Partner
32 6 3

This is an accepted solution.

Hey Ali,

 

You need to put the image files in the src, those are links to the webpage where the images is displayed! Right click and "copy image address". Additionally you can download the images and upload them onto Shopify and use the CDN links. That will be faster and will load more reliably!

 

Here this should work.

<ul class="page-width" style="list-style-type:none;font-size:12px;">

     <li><img src="https://i.imgur.com/0HUGPNn.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="IG LINK" style="color:white">Instagram</a></li>

     <li><img src="https://i.imgur.com/gDWKJHl.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="FACEBOOK LINK" style="color:white">Facebook</a></li>

     <li><img src="https://i.imgur.com/VqsK3Qi.png" width="20px" style="vertical-align: middle; margin-right:10px;"><a href="X LINK" style="color:white">Twitter</a></li>

</ul>

 

Happy coding!

Mike Kiss

@ symmetrycommerce.com we build integrations, websites and Shopify solutions.

ali2787
Tourist
8 0 1

 when i pasted your code in - worked.  thanks very much