image liquid code

Tourist
27 0 0

Hoping someone can help with this

 

I'm just trying to figure out how to place a payment icon image under the add to cart button on product page

0 Likes
Tourist
12 0 1

Hi,

You can add simple HTML code or can add shopify standard code:

<img src="{{ 'imgName.png' | asset_url }}"  title="" />

 

HTML code:

<img src="/files/shops/xxxx/nnnn/assets/myimage.gif" width="400" height="454" border="0">

0 Likes
Highlighted
Tourist
27 0 0

These do not work for some reason.

 

Am I supposed to replace the "xxxx and nnnn" with something?

 

"/files/shops/xxxx/nnnn/assets/myimage.gif"

0 Likes
Tourist
12 0 1

Hi @csimacc 

Let me explain in a simple way, you can get the uploaded file path from Shopify settings in admin,https://prnt.sc/nsmnon. For this, go to Setting - > Files -> you will see all uploaded file path, https://prnt.sc/nsmmzq


Get file from here and add it to img tag(<img src="" />)


 

0 Likes
Tourist
3 0 5

Anyone found a solution? Looking for some help on this.

2 Likes