Skip to main content

collection_img_url
Deprecated

variable | collection_img_url
returns string

Returns the CDN URL for a collection's image.

Deprecated

The collection_img_url filter has been replaced by image_url.

{{ collection.image | collection_img_url }}

Output

//polinas-potent-potions.myshopify.com/cdn/shop/collections/sale-written-in-lights.jpg?v=1657654130
image | collection_img_url: string

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

{{ collection.image | collection_img_url: 'large' }}

Output

//polinas-potent-potions.myshopify.com/cdn/shop/collections/sale-written-in-lights_large.jpg?v=1657654130
Was this page helpful?