Question:
##########
one more question regarding “category colors” within calender overview:
i have created 2 categorys, the first one have a color “x”, the second one “y”, but if i create an event and select both categorys for this event, it shows the color “x”. Is there a way to say use color “y”?
Example: http://www.suchhunde-hessen-sued.de/test/
cat 1. = blue / cat 2. = red
in the second step i have disabled the category color:
cat 1. = no color / cat 2. = red
but it still shows color “blue”. I thought, that if i disable it, it will take the color from the second category.
Solution:
##########
function my_change_ee_category_color_sort_order() {
‘arsort’;
}
add_filter( ‘filter_hook_espresso_calendar_category_color_sort’, ‘my_change_ee_category_color_sort_order’ );
You can add the above to a functions plugin or into your WordPress theme’s functions.php file.
##########
I do not know if I have understood it correctly.
When I enter the pasted code in my functions.php, nothing happens. Do I have to change something or should that work already?
The function needs to return the ‘arsort’ value, like this:
return 'arsort';
Viewing 1 reply thread
The support post ‘EE3 CSS color for 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.
Support forum for Event Espresso 3 and Event Espresso 4.