apply_filters ( 'jetpack_relatedposts_filter_thumbnail_size', array array( )

Filter the size of the Related Posts images.

Source file: modules/related-posts/jetpack-related-posts.php

View in GitHub

Parameters

array(

(array) array( ’width’ => 350, ’height’ => 200 ) Size of the images displayed below each Related Post.


Changelog

Since: Jetpack 2.8.0


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' );

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Comments

  1. thezwomann says:

    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.

  2. jawase says:

    This is great. But I am a little unclear where I should add this coding?

  3. claudi79 says:

    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