• I’ve hollowed out the index. Everything looks great except it does not match the default theme. How do I add the default css to this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Put the call in the head part of your index, like
    <style type="text/css" media="screen">
    @import url( <?php bloginfo('stylesheet_url'); ?> );
    </style>

    or something similar.

    Thread Starter 7milesdown

    (@7milesdown)

    thanks. I will try this!

    Thread Starter 7milesdown

    (@7milesdown)

    Im getting this error!

    @import url(
    Fatal error: Call to undefined function: bloginfo() in c:\hosting\*****\member\******\about.php on line 2

    OK, so where is your “about.php” file located? Or better, which WP version are we talking about? Because in WP 1.5 you don’t need any real static pages, just use the Pages feature!

    Make sure you have this line at the top of page:

    <?php require(‘./wp-blog-header.php’); ?>

    That’s where the WP functions like bloginfo() are defined.

    Thread Starter 7milesdown

    (@7milesdown)

    well im adding php content thats why. I know there is the built in static page. I’ll try to add teh require at the top and see what comes out of it.

    Thread Starter 7milesdown

    (@7milesdown)

    Thanks Ming. that got it working!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding CSS to static pages’ is closed to new replies.