{"id":1262,"date":"2016-01-29T14:11:22","date_gmt":"2016-01-30T00:11:22","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=1262"},"modified":"2016-01-29T14:11:22","modified_gmt":"2016-01-30T00:11:22","slug":"disable-responsive-images-in-wordpress","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/disable-responsive-images-in-wordpress\/","title":{"rendered":"Disable Responsive Images in WordPress"},"content":{"rendered":"

In WordPress 4.4\u00a0images are\u00a0displayed with the srcset attribute. \u00a0This attribute allows the browser to select alternative images for best viewing. \u00a0Sometimes though this may not be wanted as the image being displayed is the only image you want to show for all users.<\/p>\n

To not have any srcset images, use the following:<\/p>\n

add_filter( ‘wp_calculate_image_srcset_meta’, ‘__return_null’ );<\/p>\n

For other filters new to\u00a0WordPress 4.4, you can visit the blog post:<\/p>\n

Responsive Images in WordPress 4.4<\/a><\/p><\/blockquote>\n