Support forumCategory: QuestionsConditionally change colour of appointments on calendar
charcope asked 1 week 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 1 day ago

Hi, there is no hook when calendar is loaded. We can add it if you need that. Should be simple thing.

best regards,

charcope replied 19 hours 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