[Support request] Post featured image size in Search Theme

Home Forums Support [Support request] Post featured image size in Search Theme

Home Forums Support Post featured image size in Search Theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2220867
    web2022

    Hi,

    Firstly, I apologise in advance if this topic was already solved previously, I couldn’t find it though.

    I’m using the Search theme in Generate Press Premium, I would like to get the Post Featured Image sizes to be all displayed the same width and height, even though they may be different dimensions when uploaded. I’ve tired Regenerate Thumbnails but nothings working.

    Can you please help?

    Thanks

    #2220938
    David
    Staff
    Customer Support

    Hi there,

    so that page is using the core Latest Post block, and for that you could use this CSS:

    .wp-block-post-featured-image img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    adjust the aspect ratio to suit your images.

    #2220989
    web2022

    Perfect, thank you!

    #2220996
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.