This topic has 4 replies, 2 voices, and was last updated 9 years by anetteleupold.
-
Author
-
June 19, 2015 at 15:38 #63864anetteleupoldParticipant
Hello,
the „Small Left Thumb“ Blog Layout uses the complete post image as thumbnail.
Is it possible to use the cropped wordpress preview image instead so that all images have the same size ?Anette 🙂
June 19, 2015 at 16:24 #63875sharmstrModeratorThe images are resized on the fly. As you’ve seen the resize only takes into consideration the width which is set to 480px and will scale the height accordingly. (note: depending on your screen size, the image might not display 480px wide, but it is) If you use the standard WP thumb size of 150px your going to have to make a bunch of css changes as well, plus it wont effect videos or image gallery thumbnails. I suggest sticking with the 480px width, but changing the resize to hard crop to 480px height as well. Try this and let me know what you think.
Copy /kleo/page-parts/post-content-small.php to your child theme. Go do to around line 146 and change it from this
COPY CODE$image = aq_resize( $img_url, $kleo_config['post_gallery_img_width'], null, true, true, true );
to this
COPY CODE$image = aq_resize( $img_url, $kleo_config['post_gallery_img_width'], '480', true, true, true );
If you dont like that, you can always change the sizes. Set height and width to whatever you want.
COPY CODE$image = aq_resize( $img_url, 'width', 'height', true, true, true );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 19, 2015 at 16:49 #63884sharmstrModeratorBe sure to check that file against any new updates.
I do like this idea though. Maybe I’ll put a switch in theme options.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.