Site logo

Archived topic

post thumbnail size problem

5 replies · Started by horst on April 6, 2020

Viewing posts 1–6 of 6

dear generatepress theme,

thank for this wonderful theme and your always great support.

i have recently a problem regarding the post thumbnail sizes: i set them in the customizer -> layout -> blog to a size 500px / 240px. now it seems, that it has no effect to the generated thumbnail. even if i change the sizes in the customizer (and regenerate the thumbnails) the thumbnails wont have the right proportions.

as you can also see, last year it worked perfectly. the new blog post seem to have this problem.

thanks for your help!

horst

Hi there,

what happens if you set the Blog image width to 500 and leave the height as Auto.

thanks david,

for your fast reply!

as you can see: the image width is large enough, but the height has different formats (landscape or portrait pictures).

would you now set the height attribute with css?

best, horst

Then add this CSS:

.post-image img {
    height: 240px;
    -o-object-fit: cover;
       object-fit: cover;
}

GPP 1.11 - will have this built in :)

perfect david,

thank you, works like a charme. thank you for your help as always!

best horst

Glad to be of help

This archived topic is closed to new replies.