By Guest on Thursday, 02 February 2017
Replies 7
Likes 0
Views 1.6K
Votes 0
Hello and first, sorry for my bad english.
Is it possible to color the whole cell in a month view with the category color? (i have only one event per day, during the whole day).

Thanks in advance for your help.
Exactly. How do you expect we determine which category to use when there are two events? It is impossible which is why it's not a common element within JEvents Core.

Many thanks
Tony
·
Monday, 06 February 2017 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Have you tried some Custom CSS in JEvents?
·
Friday, 03 February 2017 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks knowyourfun.
Yes i tried to add this in custom CSS:


#jevents_body .cal_dayshasevents {
background-color:{{Event background color:COLOUR}};
}


But it has no effect.

If i try this

#jevents_body .cal_dayshasevents {
background-color:#cccccc;
}


It change the background color with #cccccc but i want the color of the event category and i have multiple categories....
·
Friday, 03 February 2017 09:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Where did you try added the CSS in your first code?
·
Friday, 03 February 2017 14:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello tonyp
I tried to add the first code in "custom CSS" ( i made a mix of what i found in custom layout and CSS)
·
Friday, 03 February 2017 14:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok so custom CSS only renders custom css. You could add this to your Custom Layout though:


<style>
#jevents_body .cal_dayshasevents {
background-color:{{Event background color:COLOUR}};
}
</style>


And it should work.
·
Friday, 03 February 2017 20:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Tonyp.
It's better but not perfect. If i use your code in my custom layout, the cell background is full of color --->ok
But if i have on the same month 2 events with 2 different categories (one red and one blue for exemple), It will colorize all cell with event with the latest category color (screenshot)
·
Monday, 06 February 2017 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post