Title: same image size
Last modified: October 6, 2025

---

# same image size

 *  Resolved [hugosnel](https://wordpress.org/support/users/hugosnel/)
 * (@hugosnel)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/same-image-size/)
 * In the past all images on my events page, where of the same size.
 * I do not know why suddenly I get the images sized as they are stored in my media
   directory.
    this is very frustrating and I have found an article :[https://theeventscalendar.com/knowledgebase/changing-the-photo-view-image-size/](https://theeventscalendar.com/knowledgebase/changing-the-photo-view-image-size/)
   I have changed the event.php file as proposed and placed it in a new /bribe directory
   under my ASTRA theme i.E II needed to create the bribe directory which was not
   present under Astra.
 * 
   Anyway, the result is zero, not functioningwhat to do?
 * regards,
   Hugo
    -  This topic was modified 7 months, 3 weeks ago by [hugosnel](https://wordpress.org/support/users/hugosnel/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsame-image-size%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [stuga](https://wordpress.org/support/users/stuga/)
 * (@stuga)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/same-image-size/#post-18670656)
 * Your page is very different to mine, but I think the problem may be related.
 * I don’t like changing baseline code, as this increases the complexity during 
   upgrades. However, I don’t mind writing software that patches the display in 
   real time!!
 * You’re using quite different list tool to myself – I’m using the free version,
   which defines a maximum size for the image on the event list, then **incorrectly**
   turns it into a “cover”. If my image is the wrong size (the normal case) it is
   resized for different displays.
 * My fix was to write a javascript code snippet and run that after every page-load.
   This seems to have fixed my problem:
 * /*
 * The original Events Calendar injects some CSS into the list view, in an attempt
   to conform images. Unfortunately it doesn’t work properly
 * This code fixes the problem
 * Bad code:
 * background-size: cover
 * Should be
 * background-size: contain
 * background-repeat: no-repeat
   */
 * // replace the bad CSS with good CSS
   window.onload = function () {jQuery(‘div.
   ect-list-post-left div.ect-list-img’).css(‘background-repeat’,’no-repeat’).css(‘
   background-size’,’contain’);}
 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/same-image-size/#post-18671029)
 * Hi [@hugosnel](https://wordpress.org/support/users/hugosnel/) ,
 * Thank you for reaching out.
 * In careful investigation, it appears that your events archive (or calendar page)—
   [https://croix-haute.com/agenda/](https://croix-haute.com/agenda/), is being 
   displayed and laid out on the front end through a third-party plugin, the _Events
   Widgets For Elementor And The Events Calendar_. In that regard, I would recommend
   reaching out to the plugin’s support for proper directions or assistance.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/same-image-size/#post-18675000)
 * Hi there,
 * It looks like this thread has been inactive for a while, so I’ll go ahead and
   close it for now. If you have any other questions or concerns, please don’t hesitate
   to reopen this thread or start a new one.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘same image size’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)

 * 3 replies
 * 4 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [7 months, 3 weeks ago](https://wordpress.org/support/topic/same-image-size/#post-18675000)
 * Status: resolved