Posted: October 20, 2022 at 3:06 pm
I have the main |
|
Hi there, Can you link me to the page this is on so I can take a look? You can mark you reply private so only EE staff can view it if preferred. |
|
This reply has been marked as private. | |
You can use a snippet like this to attach a click event to the calendar view and force the calendar to render, like this: https://gist.github.com/Pebblo/a67cff006343dcfb3b326e33c69c2159#file-tw_ee_cal_rerender_on_click-php You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
Thanks. That kind of works. Although it requires a second click of the tab title to eventually render the calendar. Switching to the new tab alone does not fire the snippet. |
|
Hmm, strange, that doesn’t happen when I use the console to add the code. I can see the code in place on your site and can see it happening, but, if I copy that exact same code and run it within the Chrome dev tools console when I click on the Calendar View tab it loads the calendar straight away. Will do some checking on this and get back to you with what I find. |
|
Any update on this yet? |
|
Hi there, My apologies for the delayed reply. I asked one of our developers about this who agreed the above should work although you could try adding it within a document ready call so I’ve updated the function to try that: https://gist.github.com/Pebblo/a67cff006343dcfb3b326e33c69c2159#file-tw_ee_cal_rerender_on_click-php It works within console for me, but so did the previous snippet so I can’t say for sure if it fixes it. |
|
Thanks. That extra code did not help. I’ve just split them into two separate pages for now instead of the tabs element. |
|
The support post ‘Calendar Ajax Not Loading in Tab’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.