article_ img_ urlDeprecated
variable | article_img_url
returns string
Returns the CDN URL for an article's image.
{{ article.image | article_img_url }}
{{ article.image | article_img_url }}
{
"article": {
"image": "articles/beakers-for-science-with-water.jpg"
}
}
Output
//polinas-potent-potions.myshopify.com/cdn/shop/articles/beakers-for-science-with-water_small.jpg?v=1654385193
Anchor to size
size
image | article_img_url: string
By default, the filter returns the
small
version of the image (100 x 100 px). However, you can specify a size.
{{ article.image | article_img_url: 'large' }}
{{ article.image | article_img_url: 'large' }}
{
"article": {
"image": "articles/beakers-for-science-with-water.jpg"
}
}
Output
//polinas-potent-potions.myshopify.com/cdn/shop/articles/beakers-for-science-with-water_large.jpg?v=1654385193
Was this page helpful?