Tagged: blog posts, Element, enfold, featured image, height
Hello,
I am working with 4 columns, each has a blog posts element inside of it that displays one blog post each. If the blogs being pulled has a vertically-tall featured image, the size is very awkward. I am having trouble getting the image to be the correct height without running into issues.
You can view the page here, near the bottom. http://dev.summermatters2you.net/
Thanks
Also,
How can I go about reducing the number of characters allowed for the blog posts element? I don’t want to change this globally, just for this element.
Hi!
1.) I can’t see any issues with your images. Can you provide us a precise link where we can see it please? you can get more control over WordPress’ image sizes with a plugin like this: https://de.wordpress.org/plugins/simple-image-sizes/
2.) Refer to this: https://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length
Cheers!
Andy
Hello Andy,
Thanks for the input. I should’ve clarified more. When a post has a vertically tall featured image, it carries over the aspect ratio.
Instead I want to ensure that whenever a posts is shown using the Blog Posts element, the image is ALWAYS a fixed width/height.
Unfortunately when I’m attempting this in CSS the image is being squished, and I can’t seem to get around this.
Thanks,
Hayden
Hey!
please upgrade to WordPress 4.4, as there are some improvements of image handling in WordPress and let us know if this helps you. Otherwise you need to control image behavior on different screen sizes using media queries: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
Cheers!
Andy