Conditionally change colour of appointments on calendar

Support forumConditionally change colour of appointments on calendar
charcope Staff asked 3 years ago
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
Nikola Loncar Staff answered 3 years ago
Hi, there is no hook when calendar is loaded. We can add it if you need that. Should be simple thing. best regards, Nikola
charcope Staff replied 3 years ago

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