Changing the colors of text the event highlight in the Calendar Widget

HWKII at 00h33
02
Jan
2012
What bits of CSS code are necessary to change the Calendar widget so that instead of simply bolding the text for an event, the date shows up in a different color? I am refering to only the widget, not the full blown calendar. My forum is www.driversports.org, you will see that our Calendar widget applies a bold font when there's an event on that date, and that is far too subtle an indicator. We would like those dates with events on them to show up Orange.

Thank you.
1 Matti_7, on 02/01/2012 at 00h34
Something like this /t100500-how-do-i-change-highlight-background-color
2 HWKII, on 02/01/2012 at 00h40
I'm sorry that's not what I meant at all. I am familiar enough with CSS to know how to input color codes etc, what I don't know is where in the CSS code is it defined how a date in the mini-calendar should change when there's an event on that date.

The Mini-Calendar widget displays a month of dates. If we have events posted on those dates, that date on the mini-calendar changes appearance, from a standard font to a bold font.

If you go to www.driversports.org, on the left you will see the Mini-Calendar widget. You will notice that Friday, Jan 6 is slightly bolder than the rest of the dates because of a Birthday on that date. Instead of the font being slightly bolder, I would that date to change colors. It is simply too difficult to tell which dates have events and which dates do not, and so the Mini-Calendar is not living up to it's potential.
3 Nera., on 02/01/2012 at 01h00
Hi,

Something like this:

Code:
#calendar a {
    background: red;
}


Or it has to be the whole table/box?

4 HWKII, on 02/01/2012 at 01h04
Nera. wrote:Hi,

Something like this:

Code:
#calendar a {
    background: red;
}


Or it has to be the whole table/box?



That is much more like what I was going for yes, thank you very much Nera. If I could highlight the entire "box" that that date is in that would be better, I think, from an artistic point of view. Your help is very much appreciated. Smile
5 Nera., on 02/01/2012 at 01h06
Try this. Add this to your AP > Modules > JS managment

Code:
$(document).ready(function() {
$('#calendar td:has("a")').css('background-color', 'red');
});


Be sure to enable JS too.

It should do the trick for the whole box.

6 HWKII, on 02/01/2012 at 01h12
Nera. wrote:Try this. Add this to your AP > Modules > JS managment

Code:
$(document).ready(function() {
$('#calendar td:has("a")').css('background-color', 'red');
});


Be sure to enable JS too.

It should do the trick for the whole box.



Thank you so much. :wouhou:
7 Nera., on 02/01/2012 at 01h12
Welcome.

Topic Solved & Locked
Similar topics
Hi, there is a search function which will highlight the word we require. Is there a way we can use selenium to validate that the system highlight the correct word? For example we have test b test b from search function we search for test and it
www.kaoscustoms.org after going to phpbb3 i restored my theme. i checked css and nothing is there. board looks great but 1 issue my widgets all the titles are black. my board is black i cant see them how can i change the wiget text to white. i tried
I don't know if there is a way to do this, but I want to put events on a calendar that happen weekly (i.e. every monday & wednesday) or on the same day every month. I don't see a way to do it, so I thought I would suggest it. If there is a way to d
See also
more_less
Informations

7 Replies For the topic :
"Changing the colors of text the event highlight in the Calendar Widget"

This topic has been viewed 441 times.

Last message :
02/01/2012 at 00h33 by "HWKII"