• Hi there,

    I’m wondering how to change the thumbnail size of the featured images.
    It cuts a picture to 270 px height but I’d like to have a 320px. I’can’t find it in the CSS…?
    Have I missed something.

    Help is very much appreciated.

    Greetings
    Michael Wiese

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael,
    for targeting the featured images, in your style.css, add the class selector in the following to style the featured images:
    .feature-image{
    height: 320px;
    }

    If this doesn’t work for you, you can also add in custom thumbnail dimensions in your functions.php file. Locate the functions.php in your theme folders (may be under the library directory), add a custom image size:

    add_image_size(‘small-featuredimage’,400,320);
    This line will set a custom image size for the dimension with 400 pixels in width and 320 pixels in height.

    All you need to do now is go to the page markup and attach the custom image with your featured images
    “><?php the_post_thumbnail(‘small-featuredimage’); ?>

    Thread Starter michaelwiese

    (@michaelwiese)

    Yeah, thanks. I take the functions.php option. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change thumbnail size of featured images’ is closed to new replies.