Title: Adding CSS to static pages
Last modified: August 18, 2016

---

# Adding CSS to static pages

 *  [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/)
 * 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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160952)
 * 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](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160969)
 * thanks. I will try this!
 *  Thread Starter [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160970)
 * Im getting this error!
 * [@import](https://wordpress.org/support/users/import/) url(
    Fatal error: Call
   to undefined function: bloginfo() in c:\hosting\*****\member\******\about.php
   on line 2
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160974)
 * 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!
 *  [Ming](https://wordpress.org/support/users/ming/)
 * (@ming)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160978)
 * 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](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160993)
 * 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](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160994)
 * 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.

 * 7 replies
 * 3 participants
 * Last reply from: [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/adding-css-to-static-pages/#post-160994)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
