Support

Home Forums Events Calendar Add-on Adjusting category priority for calendar labels

Adjusting category priority for calendar labels

Posted: March 27, 2018 at 2:21 am


T R

March 27, 2018 at 2:21 am

Hi there, we have quite a few event categories and sometimes an event needs multiple categories assigned to it. Is there a way, however, to determine which label/color it will show on the calendar? Or, a way to change the priority of which category it will show on the calendar?

Thanks for any help on that.


Josh

  • Support Staff

March 27, 2018 at 11:27 am

Hi T R,

Those are some great questions. The calendar feature that adds the background color selects the first category by ID. So for example if you have two categories assigned to an event and their IDs are 86 and 92, the calendar will use the background color for category ID 86.

If you want the events to always use the background color for category 92 instead, you can add some custom CSS like this:

.category-slug {
background-color: #colorcode !important;
border-color: #colorcode !important
}

where .category-slug is the slug name of the category, and #colorcode is the hex code or equivalent.

If you need further help with overriding a background color for a particular event, can you reply with a link to the web page in question and include which event you want to change?

The support post ‘Adjusting category priority for calendar labels’ 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