Thread: Wordpres Help
View Single Post
Old 07-30-2012, 03:36 PM  
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Quote:
Originally Posted by The Dawg View Post
Yes, I found this too. My menu is loading with all the cats correctly. I want to add a the css code to change the current category to a different color.
Hm, I'll have to think about that one. I can only think of doing that by overriding the text html based on the category by making a custom category list for the sidebar or maybe by using separate CSS files for each category using 'in_category' like this:


<link rel="stylesheet" href="<?php bloginfo('template_url')?>/default.css" type="text/css" />

<?php
if( in_category( 1 ) )
{
?>
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/cat1.css" type="text/css" />

<?php } elseif ( in_category (2) )
{
?>
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/cat2.css" type="text/css" />

<?php } elseif ( in_category (3) )
{
?>
<link rel="stylesheet" href="<?php bloginfo('template_url')?>/cat3.css" type="text/css" />
<?php } else { ?>

<?php } ?>
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote