Tagged: blog posts, Element, enfold, featured image, height
-
AuthorPosts
-
December 7, 2015 at 12:02 am #547718
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
December 7, 2015 at 4:57 am #547750Also,
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.
December 8, 2015 at 5:02 pm #548851Hi!
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!
AndyDecember 8, 2015 at 9:41 pm #549247Hello 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
December 14, 2015 at 4:42 pm #552464Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
