in WordPress

How To Disable Auto WordPress Responsive Images

As of 4.4 WordPress will automatically add the srcset attribute to the images in your content. The srcset attribute allows you to define different images to use at different viewport breakpoints.

<img src="small.jpg" srcset="medium.jpg 1000w, large.jpg 2000w">

The problems comes if you're using a CDN to delivery your images such as Amazon S3 then you could get into the situation where you have image URLs coming from S3 and the srcset images coming from y

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email