Posted: May 7, 2016 at 11:21 pm
|
I’m using the following: EE 4.8.43.p What’s happening is the events are piling on top of each other in the top left of the calendar and not on the dates they’re supposed to be, as in this screenshot: The events are June 6 and June 7. What could be causing this? |
Hello, your theme may be introducing some styling that is shifting the content upwards. We can help you correct that with some new CSS. Could you provide a link to the events calendar page on your site please? — |
|
|
Hello, Thanks for taking a look. The site is on this development link right now but that should not be causing the issue I think. Thanks much, |
Hi there, What could be causing this is there are two copies of the jQuery library loading up on that page. Here’s a screenshot that shows the source, with each of the copies outlined: The one copy that should be loaded is the one that’s bundled with WordPress. The other one needs to be removed. It might take a little detective work to find the code that’s loading the extra copy. It might be from the theme or another plugin. |
|
|
Hello, Thanks for the info. I’ve removed the extra jQuery file but unfortunately it had no effect. Events are still showing at the top left of the calendar stacked on top of each other. |
Hi there, Any JavaScript errors on the page can cause problems with the Calendar as it uses JS to position the events. Looking at your site in dev tools you’ll see something like this – http://take.ms/H1GGgF Likely because the version bundled with WordPress runs in noConflict mode, which basically means you can not just $ as the jQuery handle. Take a look here for more info on noConflict mode: https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ |
|
|
Hello, I’ve removed the $ and changed it to jQuery and it did remove all JS errors, but it had no effect. Also, I deactivated all other plugins except for EE and EE Calendar and that didn’t have any effect either. |
Does it have an effect if you temporarily switch to another theme? You can use the theme test drive plugin to test another theme which logged in as the WordPress admin. |
|
|
Switching to another theme does indeed allow the events to appear on their properly scheduled date. |
Yes, so what’s happening is there’s a sledge hammer-esqe CSS style rule that your theme adds:
The theme really should be setting divs to be position: relative where needed, but instead it’s setting all divs. The trouble is, the calendar needs some of the divs on the page to be static, not relative. You can try adding the following to your custom stylesheet:
You may need to tweak the above by adding additional specific div class selectors to the position: relative rule if anything else snaps out of place. |
|
The support post ‘Events appearing at top left of calendar and not on event date’ 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.