This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Change Thumbnail Size in Ih Recent Posts

10 years ago · Last reply by Magus 10 years ago

I’m displaying the recent post images on my front page. I need to remove the crop aspect (already turned that off in Settings > Media) and just resize the image to be a specific size every time. I’ve tried to add some code to my functions.php and am getting nowhere.

add_filter( 'image_size_names_choose', 'my_custom_sizes' );
	function my_custom_sizes( $sizes ) {
	return array_merge( $sizes, array(
	'front-books' => __( 'Front Book Covers' )
	) );
}
function white_setup() {
	//Register custom thumbnail sizes
	add_image_size('front-books',75,100,false); 
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size(75,100);
}

URL: http://www.goodlandtownshiplibrary.org

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Magus Staff 10 years, 9 months ago

    Hi Hopemarshall

    The post loop widget that you are using on your home page at the moment is the one supplied with the theme. If you switch over to the SiteOrigin Post Loop we should be able to help.

    Thank you

    Magus

    On a side note, did you get my reply to your other post

    Thread: No image in post carousel

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread