Home › Forums › Pro Version › Full Screen image
- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by
Masonry Guy.
- AuthorPosts
Oladapo Onikuyide
GuestAccidentally posted in the Lite Forum even though I’m running premium: I was wondering how i could take those featured images that show up in the ‘Default’ theme and and have them fill the width/top portion of the boxes. They show up right now as medium attachments, and I want to know what controls that.
Masonry Guy
KeymasterHi Oladapo,
Can you please post the url here ?
Thanks
Oladapo Onikuyide
GuestMy site is on a local server stored on my hard drive. But here is a screen grab of one of the images http://imgur.com/EYOey9o, whenever I cane the setting from medium to large, I get this http://imgur.com/C5hLxyW
Masonry Guy
KeymasterHi 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
- AuthorPosts