-
tessomewhere
Some feature images are not showing at the pre-defined size (medium) on my site.
I’ve regenerated feature image thumbnails but the problem persists.
Feature image size is 600×900 and medium is set to 400 x 400 (max)
What am I missing?
-
Fernando
Hi there,
Your images have different dimensions inherently. This is the reason why their sizes are different. They may be 400px in height for instance, but since their aspect-ratio isn’t 400×400 and their widths are different, the rendered sizes will be different width-wise.
What you can do is create a Block Element – Content Template so that you’d be able to control how the images look. Reference: https://docs.generatepress.com/article/block-element-content-template/
You can also control them through custom CSS by adding this through Appearance > Customize > Additional CSS:
:is(.blog, .archive) .post-image img{ object-fit: cover; width: 400px; }You can also try defining specific dimensions in Appearance > Customize > Layout > Blog: https://docs.generatepress.com/article/adjusting-the-featured-images/
- You must be logged in to reply to this topic.