Disable srcset in WP

Lately i noticed that pictures i uploaded are a bit blurry and when i checked my code using firebug i noticed some srcset in my images
This is a new feature in WP used for responsive images but i guess they need to work on it a bit. If you wish to disable it

Add the following to your functions.php in the root of your theme folder
/* Show future posts */
function disable_srcset( $sources ) {
return false;
}
add_filter( ‘wp_calculate_image_srcset’, ‘disable_srcset’ );

Tags: , ,

Nemanja Radevic

Wordpress expert Joomla expert Front end development expert Warp Framework expert Responsive design

Donate to help us continue and write posts to help people out there