collection_ img_ urlDeprecated
variable | collection_img_url
returns string
Returns the CDN URL for a collection's image.
{{ collection.image | collection_img_url }}
{{ collection.image | collection_img_url }}
{
"collection": {
"image": "collections/sale-written-in-lights.jpg"
}
}
Output
//polinas-potent-potions.myshopify.com/cdn/shop/collections/sale-written-in-lights.jpg?v=1657654130
Anchor to The size parameter
The size parameter
image | collection_img_url: string
By default, the filter returns the
small
version of the image (100 x 100 px). However, you can specify a size.
{{ collection.image | collection_img_url: 'large' }}
{{ collection.image | collection_img_url: 'large' }}
{
"collection": {
"image": "collections/sale-written-in-lights.jpg"
}
}
Output
//polinas-potent-potions.myshopify.com/cdn/shop/collections/sale-written-in-lights_large.jpg?v=1657654130
Was this page helpful?