-
AuthorPosts
-
November 18, 2014 at 5:06 am #147412
eugenetimParticipantHi.
I am using recent posts shortcode on my homepage. It works perfect but today I’ve found strange problem. When I use feature image file with less then 1216px wide then shortcode displays non cropped thumbnail with original file aspect ratio. But when I use 1216px feature image shortcode displays slightly cropped thumbnail. You can see this here: http://www.fotolandscape.com/
What I want: the same thumbnail size for all posts displayed by shortcode. Doesn’t matter slightly cropped or not, but the same size.November 18, 2014 at 10:06 am #147674
CousettMemberYou could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
November 18, 2014 at 10:29 am #147696
eugenetimParticipantOk, I’ll try. Which is correct aspect ratio of thumbnail for Icon stack? As in original file or more wide and slightly cropped? Another words for my site 364x243px or 364x203px?
November 18, 2014 at 4:23 pm #147951
Nabeel AModeratorHi there,
As a work around you can specify the width and height for the recent posts images, which will resize all the images to the same dimensions.
You can do this by adding the following code in Appearance > Customize > Custom > CSS:
.x-recent-posts img { width: 306px; height: 204px; }The aspect ratio depends upon the image dimensions.
November 19, 2014 at 1:18 am #148170
eugenetimParticipantGreat! Thank you.
November 19, 2014 at 2:19 am #148231
eugenetimParticipantI’ve found the reason. My usual horizontal photographs have 1.5 aspect ratio. Icon stack register custom image size for thumbnail ‘entry icon cropped’ 1216x680px (1.8 aspect ratio). When I use files for featured image smaller than 680px height, WP doesn’t crop this image and use original file as thumbnail. In case of images with height more than 680px, WP crop original and use this cropped copy as thumbnail. So for equal sizes of all thumbnails we have to set feature image files more than 680px height. Or, in case of small images, crop them manually with Manual Image Crop plugin.
November 19, 2014 at 8:20 am #148441
Kosher KMemberGlad to hear you’ve figured out your issue,
Have a great day
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-147412 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
