All things Shopify and commerce
ella theme how to update img_url to image_url,
for example: img_url: 'master' =>image_url: format: 'mast is this right?
Hi @DawnTawn
In the context of the Ella theme in Shopify, updating the img_url to image_url is part of transitioning from older to newer versions of Shopify's Liquid syntax. The img_url filter has been replaced with image_url in recent updates.
Here's how you can update the code:
Old syntax (img_url):
{{ product.featured_image | img_url: 'master' }}
{{ product.featured_image | image_url: 'master' }}
In your example, if you are updating from img_url: 'master', the correct syntax using the image_url filter would look like this:
{{ product.featured_image | image_url: 'master' }}
This syntax now works with the updated Shopify theme and Liquid API. Make sure you replace img_url with image_url in all relevant places in your theme files.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024