Site logo

Archived topic

Adjusting the Featured Images archives blog

3 replies · Started by Manuel on October 16, 2022

Viewing posts 1–4 of 4

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

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/

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

You are welcome :)

This archived topic is closed to new replies.