[Plugin: Event Calendar 3] Custom theming the event calendar…
-
Hi there,
I just tried to apply some custom css styles to the event calendar widget in the sidebar and stumbled across a few things which made it more difficult than it could be… ??
In the event calendar widget (id
#wp-calendar
) there are 2 tables. One for the navigation bit on top (previous month, ical, next month) marked with class “nav” and one for the main calendar view.The second table for the main calendar view does not have a classname attached to it at the moment which makes styling a bit more difficult because any styling I for example apply to
#wp-calendar tbody td a
I have to manually “undo” or change for the navigation table above#wp-calendar .nav tbody td a
…Here’s an example:
#wp-calendar tbody td a {
background-color: #63B1E5;
color: white;
display: block;
text-decoration: none;
}
#wp-calendar .nav tbody td a {
background-color: transparent;
color: inherit;
display: inline;
text-decoration: underline;
}
It would be nice if I there was a class (e.g. “cal”) attached to the calendar so that I can simply use the following css:
#wp-calendar .cal tbody td a {
background-color: #63B1E5;
color: white;
display: block;
text-decoration: none;
}
… and the .nav table would just be rendered using default styles, provided by my default style.css. ??Alex, would it be possible for you to add classes like this to your widgets/html bits? I had similiar issues with the post iconlet a while ago and I’d be happy to have another look at it and provide some suggestions….
- The topic ‘[Plugin: Event Calendar 3] Custom theming the event calendar…’ is closed to new replies.