Hello @mahnas92,
Thanks for reaching out to us and notify issue.
We will fix it in an upcoming release. until that you can use below custom CSS to fix the issue. Also please change 260px to as per your requirement.
.img_placeholder {
min-height: 260px !important;
}
Thanks,
Xylus Themes
Hi!
So I’ve been struggling with this for many hours now and found out better ways to solve it. Not sure why you marked it as resolved (as I just noticed)…
The problem with the code (see bellow) you gave me are many!
.img_placeholder {
min-height: 260px !important;
}
First, it is non-responsive, so it did not work for me, since my WordPress main container width is quite large (so the height would still be cropped with a height of 260px, needed like 350px)
Also, even if it worked – it would break on a phone!
I simply did like this:
width:100%;
height: 0;
padding-top: 52.4%;
The 52.4% comes from the quota of the Facebook event-banner dimensions 262×500
(i.e. 262/500 = 0.524)
The other problem I came to find is that Facebook includes my WHOLE banner-image in the embedded snippet, which means if I have a 400×500 picture, most of the right part of it will cropped. The optimal solution is to crop evenly from both the right and left side (and top and bottom), so I needed to also add these:
background-position: center center !important;
In your code (did an HTML-inspection) you do a position along “Left Top”, please change that too!
Code snippet in full:
.img_placeholder {
width:100%;
height: 0;
padding-top: 52%;
background-position: center center !important;
}
Thank you for this nice plugin, and hope my full-day research is helpful! ^^
-
This reply was modified 6 years, 10 months ago by Mahmoud. Reason: Code indentation
Hello @mahnas92,
Thanks for a do research on this and provide useful resource. We will forward your CSS snippet to our development team.
Let us know if you have any other issues or difficulties.
Thanks,
Xylus Themes