Reply To: Full Screen image

Home Forums Pro Version Full Screen image Reply To: Full Screen image

#714
Masonry Guy
Keymaster

Hi Oladapo,

The stretch image us caused by wordpress forcing height/width in your image. You can keep this in your functions.php to fix it.

function remove_img_attr ($html) {
    return preg_replace('/(width|height)="\d+"\s/', "", $html);
}

add_filter( 'post_thumbnail_html', 'remove_img_attr' );

Thanks