Support

Home Forums Event Espresso Premium Calendar wont load correctly on Page Load Only After Activating Forward and Back

Calendar wont load correctly on Page Load Only After Activating Forward and Back

Posted: June 12, 2020 at 2:46 pm


Jarred

June 12, 2020 at 2:46 pm

Hey guys, this can’t be the themes fault. The calendar will work how its supposed to ONLY after I forward one month and then back another month.

IT WILL NOT work correctly if you just visit the calendar page on desktop or laptop. The only way to get it to work is to go forward to the month of July and the Back to the month of June.

So I cant really tell website visitors to land on the calendar and then go forward a month and back a month? I have tried all different options on the calendar add-on as well. So please help how can we fix this.


Jarred

June 12, 2020 at 2:46 pm

This reply has been marked as private.


Tony

  • Support Staff

June 16, 2020 at 9:27 am

Hi Jarred,

this can’t be the themes fault.

If the theme is changing the order of how things normally load it can throw off the calculations for the event entries on page load. When you switch months it re-pulls the events and re-calculates the values (as the events have changed they would be invalid anyway).

This can easily be due to something weird going on in a theme.

So I cant really tell website visitors to land on the calendar and then go forward a month and back a month? I have tried all different options on the calendar add-on as well. So please help how can we fix this.

We don’t have an option to in the calendar settings to fix this as it’s not expected.

One way to fix the output is to force a rerender on the calendar when the window has finished loading, something like this should do it:

https://gist.github.com/Pebblo/a67cff006343dcfb3b326e33c69c2159

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 months, 1 week ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!