Skip to main content

file_img_url

string | file_img_url
returns string

Returns the CDN URL for an image from the Files page of the Shopify admin.

{{ 'potions-header.png' | file_img_url }}

Output

//polinas-potent-potions.myshopify.com/cdn/shop/files/potions-header_small.png?v=4246568442683817558
image | file_img_url: string

By default, the file_img_url filter returns the small version of the image (100 x 100 px). However, you can specify a size.

{{ 'potions-header.png' | file_img_url: 'large' }}

Output

//polinas-potent-potions.myshopify.com/cdn/shop/files/potions-header_large.png?v=4246568442683817558
Was this page helpful?