calendar opens all events.
-
I’m running WP on IIS and calendar opens all events at once like this: screenshot
Version of “My calendar” is 2.4.12.How to fix this?
-
Take a look at the FAQ for this:
https://www.joedolson.com/my-calendar/faq/#jsq
I can’t make any specific comments without seeing your site.
I saw this. It’s not it.
Unfortunately I can’t publish site right now. But I did some digging and here are my findings:
this behavior is connected with site language. When language is English events are hidden, but when language switched to Russian all events don’t hide. There are this classes in table cells when english is used: ‘thu future-day has-events author1 mcat_general day-with-date’ (<td id=’mini-2015-12-24′ class=’thu future-day has-events author1 mcat_general day-with-date’>) but for russian language there is only class ‘ day-with-date’ for the very same day.
Another thing on cells for days without events there is classname corresponding to the name of the weekday and that classname is translated. But in russian instead of two letters in unicode it’s written as 4-character string. This is plainly visible on screenshot in my previous post as 4 rombs in a raw in the td-tag classes. This day-class should be first class in the td-tag classes but due to encoding error I guess php interpret it as control characters and weep out following classes up-to last one ‘day-with-date’. Because there is no cells with ‘.has-events’ class no child events are hidden by script.Just proof of concept – I’ve removed ‘$dayclass’ variable from string where calendar cell is formed (line 1502 of my-calendar-output.php) and events became hidden.
Why did you use localizes names of days for $dayclass?
Is it allowed to use none Latin characters in CSS class names?Interesting. It must be breaking the styles entirely. I can see that.
The *reason* I used localized names was because I didn’t want people using them to have to think in other languages. Which was a stupid reason. The reason I’m *still* using them is because I did use them, and now there are people using them, which means changing them will break some people’s custom styles. All things considered, it’s a minor break, however; nowhere near as large as your issue, so I’ll probably just go ahead and make that change in the next release.
Best,
JoeJoe, I love your plugin and have used it on several sites. I’m having this same issue. I just started out of nowhere the other day. I’ve disabled all other plugins, checked for the line you posted elsewhere in the footer…everything is there. I’ve changed the theme. No matter what I do, all the event popups are open and can’t be closed.
This is caused by a JavaScript syntax error in your theme. You can see more information about this here:
https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list#post-8271654
If there’s an update for your theme, I suggest you apply it, since that’s where this syntax error is happening.
Thank you SO much. It’s fixed now. I so appreciate it.
Hey Joe… I updated the theme and it fixed the view in Firefox, but not in Chrome:
http://firstclasspesttraining.com/my-calendar/Any thoughts?
I took a look, and this seems fine; I also have a separate email from you indicating that you resolved the problem, although I’m not sure what order the two came in. I assume you resolved the problem, however.
The topic ‘calendar opens all events.’ is closed to new replies.