• 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)
  • Could that be because you have another general stylesheet that is called on each one of your pages?

    You might want to include one else statement where you precise which stylesheet to use for all the other pages.

    I hope that helps!

    Thread Starter deterius

    (@deterius)

    Its kind of strange, its beyond that- for example I have two plugins: Connections and Forum Server…. the Forum Server Style Sheet is affecting the Connection tags!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS specific to page and category’ is closed to new replies.