user14377
user14377

Reputation: 147

WordPress change featured image default size

I have a WordPress site and I want to increase the default size of the "featured image" for each of my posts to 500px by 500px. I tried simply resizing the image with CSS but they pixelate.

Any ideas? Sorry if this is basic - I'm a bit of a WordPress novice.

Upvotes: 0

Views: 2828

Answers (3)

Yeltsin Lima
Yeltsin Lima

Reputation: 21

You need to create a functions.php file. And place this on your code:

if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 500, 500 );
}

Upvotes: 2

Paul Dessert
Paul Dessert

Reputation: 6389

Your images are blurry because they they are set at a lower resolution than 500px x 500px. You can't scale an image up without loosing quality.

To fix this, create your images to the desired size in a graphics editing program like Photoshop

Upvotes: 0

Piotr Kaluza
Piotr Kaluza

Reputation: 413

Try this in your function.php do

if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 150, 150 );

}

http://codex.wordpress.org/Function_Reference/set_post_thumbnail_size

Upvotes: 0

Related Questions