Posted: February 3, 2025 at 7:38 am
Is there a way to color code each event on the calendar? |
|
I have two main categories of events Recreational and commercial training but in each category i have multiple types of events. I would like each of these types to have its own color. I would like to list only the recreation training on a calendar |
|
Hi there, How are you separating the different types of events currently? I’m guessing using more categories? |
|
Yes. The events currently are separated as either recreational-boating or commercial. |
|
Yeah I fugred you would have 2 ‘main’ categories os something similar to ‘recreational’ and ‘commercial’. However, you mentioned this;
So how are you differentiating those within your site? Or are you not doing so currently? As in you could have A parent category of ‘recreational’ with child categories of ‘type 1, type 2, type 3’ etc. I’m asking becuase if you use categories for the ‘types’ you can set the calendar to include the calendar slugs as classes on the events showing in the calender, then use some CSS to apply colours to those. |
|
Hi. Ok so I assigned each event its own category and custom color and made the “recreational boating” category the parent of all of them. [ESPRESSO_CALENDAR event_category_id=recreational-boating] But the calendar still displays them all one color. what am I missing? |
|
The calendar itself will only pull in one primary category (the first) for a colour, that’s why I mentioned you’ll need some CSS above. Can you link me to the page so I can take a look? |
|
This reply has been marked as private. | |
So you’ll need to use something like this:
So a quick example for dock-pro:
You can set the colours using the hex value you set in the colour pickers earlier if preferred, just copy the value over in place of |
|
thanks. I’ll give this a go. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account