PDA

View Full Version : No colors for categories in WordPress


Tore
02-17-2008, 02:12 PM
I have put the calendar in the sidebar and also on a separate page. The calendar is displayed in different incarnations, but the colors I have set for the different event categories are only visible in the edit events control panel.

In WordPress every day is the same although the mouseovers work for the days with events on them. Am I doing something wrong with CSS or something? In order to get the calendar styles to display, I put some of it in my regular WP stylesheet.

But I still use the template styles.

ve9gra
02-17-2008, 09:46 PM
You've added the $OL code, but you missed the $CSS line. This is usually in your header.php, you'll want to add the following line (and make sure you remove the extra CSS that you've added to your WP theme)
<?php $CSS=1; require("calendar/calendar.php"); ?>
Make sure you adjust the path to fit your installation.

Tore
02-18-2008, 07:58 AM
That did it!

I already have a line further up in my header which says:

<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>

But I cannot remove that or my WordPress will have no theme at all!?

ve9gra
02-18-2008, 08:48 AM
I thought you had added bits and pieces of the Calendar's CSS into your WP theme... that is the "extra" I was referring to when I said to remove it. But definitely leave all the WP CSS there.

Tore
02-18-2008, 04:47 PM
I see. OK, then I don't have to worry about any bugs. It works beautifully now!

Thank you for your help!!!