If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
June 5, 2013 at 4:07 pm #24360
I want my featured image to have all the same size on my blog masonry some of them have the good size but others are bigger. Why that?
How can I fix this?
ThanksJune 6, 2013 at 5:40 am #123286
Do you mean the Blog Grid Style? Suggested image size is 495×400. You can find the image size on functions.php.
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
Can you give us a link to your website?
IsmaelJune 6, 2013 at 11:13 am #123287
My site is still in maintenance mode..
Just to be sure, I understand what you say, if I want my “blog grid style” (yes that what I meant by masonry..sorry) with all the images at the same size, my original pictures have to be at least 495 x 400 is that it?
I checked one that looks bigger on my blog and it is 300 x 300. So if the image size is smaller it will appear bigger than the normal blog grid style, is that it?
I couldn’t understand why a smaller size picture looks bigger :-/June 7, 2013 at 6:49 am #123288
Yes, this can happen because WordPress will not re-size images which are smaller than the defined thumbnail size. On the other hand the css code will scale the image to 100% of the container width regardless of the thumbnail size. And because the aspect ratio of 300×300 is different compared to 495 x 400 the scaled image version can be higher than the thumbnail with the higher resolution which is not scaled.June 7, 2013 at 3:21 pm #123289
I am having a similar issue where the thumbnail aspect ratio is correct from all of the previous portfolio images I uploaded, but the new ones are cropping off and causing the grid to be off. Would this same code fix the problem I am having? All of my portfolio images are 16:9 aspect ratio.June 9, 2013 at 8:49 am #123290
Yes, you can also use the “crop” parameter to deactivate cropping. However you must make sure that all images have the same resolution – otherwise the grid will be off again. If you want to deactivate the wp crop function use:
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400, 'crop'=>false ); // images for portfolio entries (2,3 column)
The topic ‘thumbnail in blog masonry’ is closed to new replies.