CSS specific to page and category
-
Hello!
I’ve been working with different color schemes for different pages but I’ve noticed that my CSS has been over lapping and showing up on categories that I haven’t called it.In my header.php I have the following code, is it not enough?
<?php if (is_home()) { ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/home.css" /> <?php } ?> <?php if (in_category('6')) { ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/style-business.css" /> <?php } ?> <?php if (in_category('5')) { ?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/style-culture.css" /> <?php } ?>
Thanks WordPress!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CSS specific to page and category’ is closed to new replies.