Support

Home Forums Events Calendar Add-on Understanding Category Colors

Understanding Category Colors

Posted: December 5, 2012 at 1:39 pm


Jennifer Seneca

December 5, 2012 at 1:39 pm

https://eventespresso.com/topic/hierarchy-of-category-colors-in-calendar/

I’ve been reading the above thread on hierarchy of category colors.
The final suggestion given was to downgrade the calendar, which means much functionality is lost. This seems counter-intuitive to me, as I would hate to lose that functionality.

However, we have the same issue as the initial poster. I need certain categories to override the color of other categories. What is the best solution to accomplish this?
Thank you!

Jennifer


Jennifer Seneca

December 12, 2012 at 1:43 pm

Can anyone help me with this?


Josh

  • Support Staff

December 13, 2012 at 11:22 am

Hi Jennifer,

If an event has multiple categories, the first category in the list will “win” and its background color will be used.

It is possible to manually override each event with CSS. For example, if you have an event with an ID of 123 and it is showing up as blue, but you want it to be green, you can add this to a custom stylesheet:

a#EVT_ID-123 div{
background-color:green!important;
}

You could add this style to your theme’s stylesheet or if available, a custom style option box. Another way to inject this style onto the page would be by using the Custom CSS option that’s bundled with the Jetpack plugin, or use the similar standalone my custom CSS plugin

The support post ‘Understanding Category Colors’ 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