By Daniel Scheufler on Friday, 11 August 2017
Posted in General Issues
Likes 0
Views 461
Votes 0
Hello,

I would like to have different sizes for the cover image depending on the image orientation.
Normally my images are in horizontal format and the cover images should use the whole width. That is working perfectly.

Sometimes I need a cover image in portrait format. This cover image should not use the whole width of the post entry.

When I am changing the settings not to use the whole with i can enter the pixels but then the cover images in horizontal format are too small.

How can I realise different sizings for horizontal and portrait format?

Thank you for helping
Hi Daniel,

Do note that we standardize the width of the post covers to avoid cases where there are overly huge or extremely small images that does not make the blog listing look good.

However, if you really want to do this, you may try applying custom css for the width such as:

#eb .eb-post-thumb .eb-post-image img {
width: auto;
}

EDITED: The custom css above should work without a need to modify the post.cover.php file.
·
Friday, 11 August 2017 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

thanks for helping. I have find the solution by inserting the portrait image directly into the article and not as a cover image and inserting the read more link.
·
Friday, 18 August 2017 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Daniel,

You're most welcome and thanks for updating us.

Sounds good. Glad to know it works for you.

Regards.
·
Friday, 18 August 2017 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post