Site logo

Archived topic

Featured image in Archive page

18 replies · Started by Royal Rangers on April 14, 2020

Viewing posts 1–15 of 19

I have two webs with GP Premium. 3 columns layout on archive page and set a featured image width 560px/height 315px. On first web is everything ok, all featured image are crop to 560x315. On second web cropping doesnt´t work. Images having different height. Settings is same. Can you help?

Hi there,

is you're other site using a Lazy Loader ?

Botu sítě using Lazy loading.

Both sítě using Lazy loading.

We're just about to release GPP 1.10:

https://generatepress.com/gp-premium-1-10-0/

This has made an update to the Image resizer which may fix the issue - if not i can do so with some CSS but it may be worth waiting until you update. Let me know

Hi, works but...
In customizer I have set 560x315px for featured image in archive page.
But when my column have example width 410px so image have width 410px but height is still 315px. I mean... when I add video from youtube it works. Video automatically set to 410x230px.
Problem is probably with different image size... :)
So thanks for help.

Hi there,

Is there a specific post where we can see this happening?

Been looking at this. It's just the way our new CSS resized images work.

To fix this, I suggest creating your own image size and then choosing it from the Media Attachment Size option: https://docs.generatepress.com/article/adding-image-sizes/

Then you can empty the width/height options in the Customizer and it will serve the exact size you want.

I tryed. Problem is probably on my side with different image size…
Thanks for help.

No problem - did adding your own image size fix it?

I add to functions.php but doesn´t work for all images. Maybe I do something wrong.

Yes. I regenerated thumbnails too. But something is wrong.

Can you share the function you're using to add the image sizes?

This archived topic is closed to new replies.