Home>Support>Change Thumbnail Size in Ih Recent Posts

Change Thumbnail Size in Ih Recent Posts

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Magus
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More