- This topic has 10 replies, 3 voices, and was last updated 2 years, 6 months ago by .
Viewing 11 posts - 1 through 11 (of 11 total)
Viewing 11 posts - 1 through 11 (of 11 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Change the color of the categories at the calendar
I’ve searched a long time, but i could not find it. I have this calendar:
https://www.ali-baba-spieleclub.de/termine/
Now I try to ad a new category and I want to have a new color for it, but I can’t find how to do so. I am not deep into css and all the rest, but I know I did it before. Please help me.
Greetings
Martin
I’m not the one going to teach you CSS either 🙂
But you can use the placeholder #_EVENTCATEGORIES_CSS . See this post: https://wordpress.org/support/topic/color-coding-categories/
The post explains how to change the color in every single event. But I want to have different colors in the calendar overview, like I already have for the other categories. And I don’t know, where to put in the code.
You can change the color based on the event title by this way in css:
table.eme-calendar-table td.eventful a[title=”CHIOTS”]{
color:#xxxxxx;
}
As “CHIOTS” is the event name:
Ok, thanks. But in which file? Eme.css?
Or your theme css
I am sorry, but I tried it in several css-files. But it didn’t change the color. Is there a special place to fill the code in?
Go in the EME settings, tab calendar and change the “full calender events format” to include a class, e.g.:
<li class="#_EVENTCATEGORIES_CSS">#_LINKEDNAME</li>
Then you can use css to target that category as a css name. If you want to limit it to the calender, you can then use e.g. table.eme-calendar-table as a css limiter.
I don’t want to limit, I just want to have different colors for different categories.
And as I remember, when I started with EME, I could choose the color of each category. That is not longer possible.
Sorry, but the way I described is exactly the way you need to follow to have the event categories as css class names …