• I have added my own header and footer to the Blog. However, the CSS global file I use for the rest of my site has somehow applied itself to the Blog, so all the text and functions of the blog look silly. How can I apply the style.css, or whatever css file controls the blog, to only the index.php file where the blog operates?

    Thanks,
    Shannon

Viewing 1 replies (of 1 total)
  • Someone just asked about something related:
    http://ww.wp.xz.cn/support/topic/81179?replies=3

    For your situation, I’d save the styles for the home page in a separate file, eg. styles.css and use this code in your index.php to only include the stylesheet on that page.

    <?
    if (is_home()) {
    ?>
    <style type=”text/css”>
    @import url(“/stylesheet.css”);
    </style>
    <?
    }
    ?>

    Hope that works for you.
    -j

Viewing 1 replies (of 1 total)

The topic ‘Apply CSS file to only the Index.php?’ is closed to new replies.