Force image sizes for Events Calendar posts

In terms of Events Calendar, BeTheme doesn't do anything to handle images/image sizes, and I'm wondering if there's a quick code snippet I can use to make sure that event image sizes are the same for all posts, no matter what dimensions the photo actually are?

Events Calendar leaves this entirely up to the theme, and I haven't quite figured out the code snippet that would work with the [tribe_events view="photo"] shortcode.

Any ideas or help here would be greatly appreciated. As a general idea, I'm hoping to make all images roughly 300x200 in the shortcode event feed.

Comments

  • Hi,

    Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please ensure the page is not under maintenance before you provide us with the link.

    It is always a good idea to also attach a screenshot showing what would you like to achieve.


    Thanks

  • As I explained, BeTheme should handle making image dimensions the same for Events Calendar posts in the photo feeds. I want to make sure the theme forces Featured Images to be the same dimensions used for posts.

    You can see the Events Calendar Pro photo feeds here and I've attached screenshots. For example, in the first row, the middle image is taller than the two other images. Likewise, in the second row, the last images is shorter than the others.


    I'm going to submit a ticket to Events Calendar about this too, but everything I see suggests they expect the theme to handle these settings.

  • Please, try the following CSS code:

    .tribe-events-view .tribe-events-pro-photo__event-featured-image-wrapper a img{
     max-height: 190px!important;
    }
    

    Put it in Betheme -> Theme options -> Custom CSS & JS -> CSS.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.