Title: conditional CSS
Last modified: August 20, 2016

---

# conditional CSS

 *  [liquidws](https://wordpress.org/support/users/liquidws/)
 * (@liquidws)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/conditional-css-1/)
 * hi there.. need a little help..
    i did a tutorial a learned that by including
   this code in the header.php file..
 * <?php if (is_page_template(‘page-inner.php’)) { ?>
    <link rel=”stylesheet” href
   =”<?php bloginfo( ‘template_url’ ); ?>/css/page-inner.css” /> <?php } ?>
 * for example.. i can call a certain css file for pages.. i have been looking around
   the web for hours now and cant seem how to do this with single.php files. is 
   this possible and if so how ?
 * i tried this and it IS NOT seeing the css file..
 * <?php if (is_single(‘ourclients’)) { ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘
   template_url’ ); ?>/css/page-inner.css” /> <?php } ?>
 * any help would be highly appreciated.
 * thanks in advance

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/conditional-css-1/#post-2385820)
 * i can’t see any reason why this would not work –
    possibly try with post ID or
   post title or post slug;
 * [http://codex.wordpress.org/Function_Reference/is_single](http://codex.wordpress.org/Function_Reference/is_single)

Viewing 1 replies (of 1 total)

The topic ‘conditional CSS’ is closed to new replies.

## Tags

 * [conditional css](https://wordpress.org/support/topic-tag/conditional-css/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/conditional-css-1/#post-2385820)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
