Metro 2 – Featured Post – Customizing image size doesn't work

Community Forums Forums General Discussion Metro 2 – Featured Post – Customizing image size doesn't work

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #64604

    computerkitten
    Participant
    Post count: 102

    I went into the functions.php file for Metro 2 so that I could create a custom size entry for the Featured Post image.

    I added the 2nd entry for a 120×100 width image option:

    //* Add new image sizes
    add_image_size( ‘portfolio’, 540, 340, TRUE );
    add_image_size( ‘smaller’, 120, 100, TRUE );

    When I saved this, emptied the cache, the picture is huge once its selected under Featured Post image. I then selected the standard size thumbnail of 150×150 and its fine.

    Ideas?

    Thanks!

    #64609

    braddalton
    Participant
    Post count: 10253

    I think you need to regenerate thumbnails.

    Adding a new size tells WordPress to generate that new size for all new image uploads.

    If you test this on a new post draft, and upload a new image, WordPress will now include the new size so you can select it using the widget settings or content archives for featured images.

    It won’t work for older posts unless you regenerate the existing sizes which WordPress has already generated in your uploads folder.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.