Wordpress 3.2.1 Featured Image Size and Crop

6.2k Views Asked by At

I need help finding where and how to change the size and crop of a featured image within a post. I've looked in functions.php and init.php, but with no success. I'm using a child theme of the inLine theme.

The current height is set for 130px.

I've tried changing the css, but that only stretches the image.

2

There are 2 best solutions below

1
On BEST ANSWER

In your functions.php, paste one of these and adjust pixel width and height to your liking:

set_post_thumbnail_size( 100, 100 ); // 100 pixels wide by 100 pixels tall, box resize mode

OR:

set_post_thumbnail_size( 100, 100, true ); // 100 pixels wide by 100 pixels tall, hard crop mode
0
On

Do this in functions.php:

add_image_size( 'name-of-your-image-size', 600, 300, true );

Or if you'd rather use a plugin-

http://wordpress.org/extend/plugins/additional-image-sizes-zui/

And then in your post, retrieve it like so in your single.php or loop:

<?php the_post_thumbnail('name-of-your-image-size'); ?>