Support

Home Forums Event Espresso Premium Calendar Colors when selecting Multiple Categories

Calendar Colors when selecting Multiple Categories

Posted: January 8, 2016 at 11:14 am


John Baltz

January 8, 2016 at 11:14 am

Has anyone solved this issue? I read several posts from years back, but none seemed to have a definitive solution.

I have two calendars (Main and Facility) I display the calendars by using the short code and selecting one of the two categories. I have several categories of events (Event, Class, Workshop, Study Group) Under the Facility I have several rooms (Studio A, Studio B, Lobby)

I have a class, the coordinator selects Class so that it shows up in the class listing. Then selects Main so that the class shows up on the main calendar. To book the room the coordinator also selects Facility so that the class shows up on the Facility calendar as well as Studio A since that is were the class will meet.

All this works perfectly except for the fact the Class looses its assigned color on the calendars. I have set all the other categories to no color, and only the event types have a color, but still the events loose their color.

One post suggested using hierarchy as the top category will display the color. However that wont work as the Top Category would have to be Class, Event, or Workshop, and then followed by Main or Facility. Since you can only nest a category under one event, that wont work…

So my question: How do I select the color to display in a calendar for an event type when selecting multiple categories?

Thanks for any help with this.


Josh

  • Support Staff

January 12, 2016 at 9:18 am

Hi John,

You can use CSS to override the styles that get assigned automatically. The thing to remember is when there are multiple categories for an event, EE will grab only one of the categories.

Here’s a CSS example that assigns a purple background to the studio-a events:

.studio-a {
background-color: purple;
}

The support post ‘Calendar Colors when selecting Multiple Categories’ 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.

Event Espresso