Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Feature images not being served at correct size

  • Some feature images are not showing at the pre-defined size (medium) on my site.

    I’ve regenerated feature image thumbnails but the problem persists.

    Feature image size is 600×900 and medium is set to 400 x 400 (max)

    What am I missing?

  • Hi there,

    Your images have different dimensions inherently. This is the reason why their sizes are different. They may be 400px in height for instance, but since their aspect-ratio isn’t 400×400 and their widths are different, the rendered sizes will be different width-wise.

    What you can do is create a Block Element – Content Template so that you’d be able to control how the images look. Reference: https://docs.generatepress.com/article/block-element-content-template/

    You can also control them through custom CSS by adding this through Appearance > Customize > Additional CSS:

    :is(.blog, .archive) .post-image img{
        object-fit: cover;
        width: 400px;
    }

    You can also try defining specific dimensions in Appearance > Customize > Layout > Blog: https://docs.generatepress.com/article/adjusting-the-featured-images/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.