Disable the responsive image ‘srcset’ on WordPress 4.4

I got email from client about theme i did rtl that the gallery is nit changing main pic after u press on the thumbs and when i look at the code i found new element called srcset which was making this problem after searching google i found this temp solution for this all u need to d o is to add this code into functions.php in your theme


add_filter( 'max_srcset_image_width', create_function( '', 'return 1;' ) );

Advertisements

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s