ella theme how to update img_url to image_url,
for example: img_url: ‘master’ =>image_url: format: 'mast is this right?
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:
{{ 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.