Hello,
My client selects multiple categories for events. They have asked for the ability to choose the primary category and use that as the category color in the calendar.
From what I can tell, events are given the CSS class for the category colors in the alphabetical order of the categories. Therefore, category “Zulu” category will always override category “Alfa” as the “Zulu” category class/css color will be used.
Ideal would be to have an option to set a primary category (for example, similar to what is used in the Yoast SEO plugin or other primary category plugins) and then colors for that category would be displayed.
Another option might be to set a “this trumps that” order. I can use a taxonomy order plugin, but then the legend shows the categories in the custom order, rather than alphabetical. Or reversing the order of reordered categories could work in this scenario, putting the most important category first in the legend but last in the CSS class order.
Or perhaps sort CSS classes by slug and legend by category name, and then change the slugs to go in the desired order.
Any feedback or suggestions is greatly appreciated.
– Peter
The page I need help with: [ log in to see the link]