Home › Forums › Calendar Products › Events Calendar PRO › Change background colour of current day (today) on the mini calendar widget
- This topic has 12 replies, 2 voices, and was last updated 11 years ago by
Geoff.
-
AuthorPosts
-
March 18, 2015 at 8:48 am #949144
Matt
ParticipantI have managed to change the colour which highlights current day (today) on the main calendar but I cannot find the equipvalent reference to use in CSS to change the background for the current day (today) in the mini widget calendar. Can you give me the relevant reference please.
March 18, 2015 at 8:49 am #949145Matt
ParticipantMarch 18, 2015 at 12:22 pm #949207Geoff
MemberHello there, Matt!
Good question. You should be able change that out by adding this to your stylesheet:
.tribe-mini-calendar td.tribe-events-has-events.tribe-events-present { background-color: #ededed; /* or whatever color */ }Does this help? Please let me know. π
Cheers!
GeoffMarch 19, 2015 at 1:33 am #949298Matt
ParticipantGeoff, Thanks for that. I have had to modify it slightly as your code only applies to days where there is an event. see here;
.tribe-mini-calendar td.tribe-events-present {
background-color: #569FD2;
color: #ffffff;
}You will see I have also tried to set the text to white but whilst the background color changes the text does not. Do you know why ?
When I use inspect element the CSS for this element doesn’t show up so I can’t work out the references to use.
March 19, 2015 at 7:52 am #949349Geoff
MemberHi Matt,
That’s because the text is being styled on a link level:
.tribe-mini-calendar .tribe-events-has-events a { color: #fff; }Cheers!
GeoffMarch 19, 2015 at 9:20 am #949379Matt
ParticipantGeoff, Again what you have given me will style the date number on days when there are events. I am trying to style the date number on the present day i.e. today.
March 19, 2015 at 9:22 am #949383Geoff
MemberAh, gotcha. You may need to make the select more specific then:
.tribe-mini-calendar td.tribe-events-present a { color: #fff; }Cheers!
GeoffMarch 19, 2015 at 9:28 am #949386Matt
ParticipantThanks but I already tried that and it doesn’t change the color.
March 19, 2015 at 9:32 am #949388Geoff
MemberHmm, that does indeed work on my setup. Is it possible one of your theme’s styles is taking precedence in this case? Would addingΒ !important to the attribute help?
If you provide me a link to a live example of your site, I may be able to help further.
Thanks!
GeoffMarch 19, 2015 at 9:58 am #949396Matt
ParticipantNo unfortunately !important doesn’t work either, very strange. Just to clarify I have the calendar widget in the sidebar. I have managed to change the background color for the present day (today) as shown above so the reference you have given me seems appropriate.
Interestingly when I refresh the page today’s date momentarily comes up as white text (which is what I am trying to get) but quickly gets replaced by the default grey when the full formatting of the calendar get put in place.
March 20, 2015 at 2:03 am #949604Matt
ParticipantI have added the events calendar widget to the right sidebar and specified “0” events in the list but it still shows all the events. Is this a bug ?
March 20, 2015 at 10:37 am #949721Geoff
MemberHi there, Matt! Thanks for following up. π
It sounds very possible that one of you’r theme’s styles is overriding the calendar’s CSS. It’s a little tough for me to weigh in on how overcome that without seeing it, but if you provide me with a link, I’d certainly be happy to look.
I have added the events calendar widget to the right sidebar and specified β0β events in the list but it still shows all the events. Is this a bug ?
Will you please open a new thread for this? I just want to make sure we keep our troubleshooting of the original question on the right track. In the meantime, please try following these steps to test whether there is conflict with your theme or plugin that could be causing that to happen.
Cheers!
GeoffApril 6, 2015 at 12:18 pm #953507Geoff
MemberHi there, Matt! This thread’s been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to reach back out with a new thread if you still have questions and we’d be happy to help you there. π
Cheers!
Geoff -
AuthorPosts
- The topic ‘Change background colour of current day (today) on the mini calendar widget’ is closed to new replies.
