[Resolved] Adjusting the Featured Images archives blog

Home Forums Support [Resolved] Adjusting the Featured Images archives blog

Home Forums Support Adjusting the Featured Images archives blog

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2375587
    Manuel

    Hello team!
    I have a problem with 3 featured images who are smaller. You can see the image of the last post https://peacefulchimp.com/
    I searched on the forum but I didn’t find the solution.
    And either on Adjusting the Featured Images documentation.
    In advance thanks,
    Manuel

    #2375601
    Ying
    Staff
    Customer Support

    Hi Manuel,

    Your images have different aspect ratios, that’s the reason they have different heights.

    Try add this CSS to reset their aspect ratio:

    .blog .post-image img, .archive .post-image img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #2375603
    Manuel

    Sorry I found the solution. I made a mistake with some featured. Instead to make 560×560 it was another size.
    Thank you

    #2375610
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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