Post thumbnail has different aspect ratios on different pages
-
I’m currently working on a website for a non-profit organization that a friend of mine belongs to. I’m not a common WordPress user; I’ve built a couple of sites before but it’s been a while. In fact, this is my first time on WP5, and I’ve had to give myself a quick education on the Block Editor system (which wasn’t that hard to figure out.)
My site is using the Hestia theme, with a number of child theme edits to customize for their needs. For baselining, I’m pretty comfortable with CSS, but not so much with PHP. I’m hoping there’s either a CSS or intrinsic WP/Hestia solution for my question.
My challenge right now is in image aspect ratios as they appear on new posts. The client prefers using images in a 1:1 aspect ratio (since an important piece for them is auto-sharing their posts on all their various social media sites. An important one is Instagram, which works best with 1:1.)
In most places on their site, post thumbnails carry over as expected as 1:1 ratios. The only exception is on their homepage — the Hestia theme crops the same thumbnail into 3:2. I’m trying to figure out how to adjust the homepage settings to display post thumbnails in 1:1.
One option is to have their image designers create their images natively in 3:2, but then adding padding at the top and bottom to fill out the square. They’re willing to do that, but only reluctantly.
I’ve been using Chrome’s Inspect Element feature to adjust width and height settings, but that seems to either keep the 3:2 and stretching the image, or adding whitespace instead.
I’m at a loss about what else I could do.
- The topic ‘Post thumbnail has different aspect ratios on different pages’ is closed to new replies.