How to set the color of the current day in FullCalendar?

I would like to change the color of the current day, but only when the calendar is displayed in day mode. My users say that it’s not easy for them to see lines or something like that. I looked through the documentation as well as css / js and did not find a quick way to do this. Is this even possible without major code changes?

+6
javascript jquery css fullcalendar
source share
6 answers

I honestly don't know what you're talking about, but the jQuery UI fullcalendar widget uses the CSS class .fc-today to style the current day. If your changes are not visible, try using !important - perhaps one of many other classes will override your styles elsewhere.

+11
source share

you can use the following code

 .fc-today { background: #FFF !important; border: none !important; border-top: 1px solid #ddd !important; font-weight: bold; } 
+5
source share

If you are not using a theme, this worked for me using FullCalendar 2.3.1

 .fc-unthemed .fc-today { background: ....; } 
+4
source share

To change the fullcalendar color / background of the current day in dayview, add the following CSS class and make sure it is loaded after all CSS styles.

  .fc-view-basicDay .fc-today { color:....; background:....; } 
+1
source share

for me it was .ui-state-highlight.fc-today

+1
source share

I had several calendars, so this worked:

 #calendar .fc-today { background: #FFF !important; } #calendar-two .fc-today { background: #FFF !important; } 

Using #calendar-favorite .fc-unthemed .fc-today { ... } does not work, so be sure to remove the .fc-unthemed .

Also check out the jquery way: fooobar.com/questions/880212 / ... using dayRender

0
source share

All Articles