Conditionally change colour of appointments on calendar
I would like to add some javascript to change the background colour of appointments depending on the title. However when I try to detect the content of .fc-title, there is no value. It seems the calendar has not fully loaded. Is there an event that is fired for when the calendar has loaded? Or a hook? Thank you!
1 Answers
Hi, there is no hook when calendar is loaded. We can add it if you need that. Should be simple thing.
best regards,
Nikola
If it is possible to add that hook, it would be great! For now I have added code below line 264 in /shortcodes/fullcalendar.php to check the event.title and add a class. Not the best way to do it I know! Thank you, Charlene
Please login or Register to submit your answer