Make images responsive with the new image_tag filter
Themes
Effective November 16, 2021
Adding responsive images to your theme is now easier with the new image_tag
filter. The filter outputs a responsive HTML img
tag by default, allows adding arbitrary HTML attributes, and supports preloading.
Learn more about the image_tag filter on Shopify.dev.