I need to style the WP (v2.6.3) calendar to fit my site layout.
Examining page source, I find these two tags: <table id="wp-calendar"> <td class="pad">
But these don't go deep enough into the calendar to allow complete styling.
I understand that some of these functions are set in "include" functions, but I'm not sure which, if any, would allow users to edit the calendar style.
wp-calendar>pad, { /*styling for only this calendar's pad */ } wp-calendar>th { /*style the header of the calendar*/ } wp-calendar>tr { /*style the row of the calendar*/ } wp-calendar>td { /*style the data of the calendar*/ } wp-calendar>tfoot { /*style the footer of the calendar*/ } wp-calendar>td>a { /*style the header of the calendar*/ }
I just wish I knew how to make the cells background fully fill in with colour if the cell has a link: here is a link to the calendars page: http://www.pfs-ifa.co.uk/resources/wordpress/, the site is not fully live yet
I just wish I knew how to make the cells background fully fill in with colour if the cell has a link
This is excellent, ikthius. Thanks very much.
The MW-Style Calendar plugin adds a "posts" class that styles the cells of any dates that contain posts. I'm not sure whether you're currently using a Calendar plugin or not, but this may do the trick for you: http://www.meyerweb.com/eric/tools/word ... endar.html
thanks slobjones, but reading what it will add and not add, I will just stick to this just now, as the client is very happy with it, although they not seen the extra styling, like days of week background colour, borders, and a light grey to cover the non gap days
ikthius, check your calendar in IE, if you haven't already. Beyond the fact that IE squeezes the thing like an accordion (width styling may help with this), IE also ignores the tbody>tr>td styling.
As you can see, that means no width, height, text-align or border.
I used a simple td style and that works for the calendar body, but it also screws up the footer, leaving what appears to be a 1px box around the middle cell.
At the moment, the thing just doesn't display well in IE.
ikthius, check your calendar in IE, if you haven't already. Beyond the fact that IE squeezes the thing like an accordion (width styling may help with this), IE also ignores the tbody>tr>td styling.
As you can see, that means no width, height, text-align or border.
I used a simple td style and that works for the calendar body, but it also screws up the footer, leaving what appears to be a 1px box around the middle cell.
At the moment, the thing just doesn't display well in IE.
Any thoughts on how we can fix it?
I checked out my wordpress calendar on FF IE8 & IE7, not checked IE6 yet and my calendar looks the same on all.
Examining page source, I find these two tags:
<table id="wp-calendar">
<td class="pad">
But these don't go deep enough into the calendar to allow complete styling.
I understand that some of these functions are set in "include" functions, but I'm not sure which, if any, would allow users to edit the calendar style.
Can anyone help here?
Thanks.
here is my code for my wp calendar: amended
I just wish I knew how to make the cells background fully fill in with colour if the cell has a link:
here is a link to the calendars page: http://www.pfs-ifa.co.uk/resources/wordpress/, the site is not fully live yet
This is excellent, ikthius. Thanks very much.
The MW-Style Calendar plugin adds a "posts" class that styles the cells of any dates that contain posts. I'm not sure whether you're currently using a Calendar plugin or not, but this may do the trick for you:
http://www.meyerweb.com/eric/tools/word ... endar.html
As you can see, that means no width, height, text-align or border.
I used a simple td style and that works for the calendar body, but it also screws up the footer, leaving what appears to be a 1px box around the middle cell.
At the moment, the thing just doesn't display well in IE.
Any thoughts on how we can fix it?
I checked out my wordpress calendar on FF IE8 & IE7, not checked IE6 yet and my calendar looks the same on all.
lets see your calendar/ codes