Title: Variable Stylesheets?
Last modified: August 19, 2016

---

# Variable Stylesheets?

 *  [tculley](https://wordpress.org/support/users/tculley/)
 * (@tculley)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/variable-stylesheets/)
 * Hey all,
 * I’m wondering if it’s possible to have different CSS stylesheets linked to different
   pages. In one of my pages, I only want my logo and content to appear and nothing
   else, but it’s difficult to get around this problem because the header.php is
   always going to call the elements I dont want in this page, and I can’t link 
   the stylesheet in the actual page.
 * Any help is greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/variable-stylesheets/#post-1531281)
 *     ```
       <?php if( is_page ('Foo') ) :?><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/foo.css" media="screen" />
       <?php elseif( is_page ('Bar') ) :?><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/bar.css" media="screen" />
       [...]
       <?php endif;
       ```
   
 *  Thread Starter [tculley](https://wordpress.org/support/users/tculley/)
 * (@tculley)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/variable-stylesheets/#post-1531469)
 * This did not work. It gave me an error saying there was an unexptected ‘<‘

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Variable Stylesheets?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [tculley](https://wordpress.org/support/users/tculley/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/variable-stylesheets/#post-1531469)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
