I have a requirement to change the color of events displayed on the event calendar (plug-in) based on Attendee Limit. If the attendee limit is reached, then the event on the calendar should display in red for example.
I can do the color change by jQuery, as long as there is some text, class, or other indicator in the calendar HTML, and the specific event entry on the calendar that shows the event is ‘full’.
Adding a class to a full event on the calendar would be the best solution, I do not know how to begin to implement. Any help is much appreciated.
There’s a category CSS class in Event Espresso that’s built into the calendar. So this could be done manually by updating the event to be assigned to a ‘full’ category. Beyond that, it would require some custom development of the calendar add-on to query the database for full events and add the class automatically.
The support post ‘How to change color of event displayed on calendar based on Attendee Limit?’ 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.