• Resolved hugosnel

    (@hugosnel)


    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/
    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 functioning
    what to do?

    regards,
    Hugo

    • This topic was modified 6 months ago by hugosnel.

    The page I need help with: [log in to see the link]

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

    (@stuga)

    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

    (@tristan083)

    Hi @hugosnel ,

    Thank you for reaching out.

    In careful investigation, it appears that your events archive (or calendar page) — 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

    (@d0153)

    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)

You must be logged in to reply to this topic.