Manually update CDN or retrieve "? number" for files in Assets?

Solved
Tourist
10 0 0

When placing an image in my page that's saved to my shopify dashboard's Files area in the settings, what would I use to access that?
I've tried the following:

{{ 'shape-a.png' | file_url }}
{{ 'shape-a.png' | files_url }}
{{ 'shape-a.png' | files }}
{{ 'shape-a.png' | file }}

 

0 Likes
Shopify Partner
189 13 24

@bill__long 

{{ 'shape-a.png' | file_url }}

Here is your answer. 

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
1 Like
Tourist
10 0 0
Hmm, for some reason it didn't work when I tried it but it was in a file I linked using the method I wrote about earlier, and inside of a product description. I'll try that liquid URL a few different ways as soon as I get the chance to work on it again, probably Monday.

For now, thank you very much for the answer.
0 Likes
Shopify Partner
189 13 24

@bill__long 

In the product description admin part not support liquid code that case you need to your file URL that is display right side of a file name in file settings.
Liquid code for display any content using Shopify is above that I have given you, there is no other way to use liquid code in Shopify.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
1 Like
Shopify Partner
1053 113 167

Hey Bill, you might have to chain one another filter when you are dealing with images:

{{ 'shape-a.png' | file_url | img_tag }}

 

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like