Source file: modules/related-posts/jetpack-related-posts.php
View in GitHubParameters
- array(
-
(array) array( ’width’ => 350, ’height’ => 200 ) Size of the images displayed below each Related Post.
Changelog
Since: Jetpack 2.8.0
How to use this hook
Notes
You can use this filter to change the size of the thumbnails used in Related Posts.
function jeherve_relatedposts_thumbnail_size( $size ) { $size = array( 'width' => 500, 'height' => 200 ); return $size; } add_filter( 'jetpack_relatedposts_filter_thumbnail_size', 'jeherve_relatedposts_thumbnail_size' );
This was EXTREMELY helpful. Thank you so much! It would be great if JetPack would create thumbnails proportionately to the image they are grabbing rather than random cropping.
This is great. But I am a little unclear where I should add this coding?
Hi, you can add it to functions.php in your active theme folder, or better follow up this guide:
Thanks! This was perfect- it worked like a charm by using code snippet.
Trying to change the thumbnail size and used the code above in my child theme’s functions.php.
Doesn’t work for me, unfortunately. Any ideas? Does it take a while for Photon to display the new size?
Thanx,
Claudia
Hi Claudia,
You do not need to wait. However, make sure that you purge your site cache after adding this snippet in your theme’s functions.php. If that still does not work, we suggest giving it a try with Code Snippets plugin.
In case, the issue is still there, please contact us via our Contact Support page (if you have a paid Jetpack subscription) or the community forum.