How to find asset URL for images?

Tourist
18 0 1

Hello! I'm hoping someone can help me.

I had a developer create the work page on www.alphabetcitydesign.com and when I upload new images to the liquid file, the image doesn't show. 

How would I find the image URL in assets?

Please advise.

Thanks!

Please don't SPAM me or send me emails about your services. Thank you.
1 Like
Shopify Expert
9800 91 1554

Just to cover an differences in terminology can you further explain your method of uploading new images to the liquid file? Is this added new images to the theme? Adding html to the page? Something else.

With some more insight/context the forum members will be a better position to answer. 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Tourist
18 0 1

I uploaded an image to the ASSETS folder and need the URL to place it in the liquid file.

Please don't SPAM me or send me emails about your services. Thank you.
0 Likes
Shopify Partner
4 0 0

Try using the asset_url or asset_img_url in your theme liquid to pull the correct image.

0 Likes
Tourist
18 0 1

Thanks but I uploaded a new image to assets and cannot find the URL no matter what I do!

Please don't SPAM me or send me emails about your services. Thank you.
0 Likes
Tourist
18 0 1

For instance, I uploaded this design: https://cdn.shopify.com/s/files/1/1719/5127/t/5/assets/acebeat-carmen-youare.jpg?1126812403010198528

But the full URL or even without the https:// works when I try to enter it in my page.work1.liquid page.

Please don't SPAM me or send me emails about your services. Thank you.
0 Likes
Tourist
18 0 1

CAN ANYONE HELP ME PLEASE?!

Please don't SPAM me or send me emails about your services. Thank you.
0 Likes
Shopify Partner
156 2 62

Hi Raquel, did you find an answer to this?

I can't find any info on this anywhere - I'm about to throw my computer out a window!

Any pointers in the right direction would be much appreciated.

0 Likes
Shopify Partner
156 2 62

OK, finally found this on the cheatsheet (god knows why this doesn't show up in the main docs).

For anyone struggling to find this info, you have two options...

{{ 'your-asset-name.png' | asset_img_url: }}

or 

<img src="{{ 'your-asset-name.png' | asset_img_url: }}" />

 

3 Likes
New Member
1 0 1

What I did was I fetch the url of the asset by using the command below:

 

{{ 'shop.css' | asset_url }}
//Replace shop.css with your asset name//

you can look at the link below for more information.

https://help.shopify.com/en/themes/liquid/filters/url-filters#asset_url

 

then replace "your-asset-name" with the url you get

<img src="your-asset-name" alt="/"></a>

 

Hope this helps. 

1 Like