Log in Sign up
Discussion Shopify

Why is 'img_url' filter deprecation warning showing up in my theme editor?

Chris Theme
Chris Theme
0 reputation
2 weeks ago 59 views 3 replies
Working on a project and need some expert opinions:

Question: Why is 'img_url' filter deprecation warning showing up in my theme editor?

3 Replies

Robert Hosting
Robert Hosting · 2 weeks ago
Shopify deprecated `img_url` in favor of `image_url`.
Mark Entrepreneur
Mark Entrepreneur · 2 weeks ago
The new filter supports `width`, `height`, and `format: 'webp'` automatically.
Jenny Store
Jenny Store · 2 weeks ago
Replace `{{ product.featured_image | img_url: '1024x' }}` with `{{ product.featured_image | image_url: width: 1024 }}`.

You must be logged in to reply.

Log In to Reply