Title: Single Cat php CSS
Last modified: February 7, 2017

---

# Single Cat php CSS

 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/)
 * Thanks to Techgnome and Beel I have now got a single cat (cat 15) running on 
   my front page. I am now trying to style it differently. I have searched here 
   fairly comprehensively. I would imagine it is something like (in laymans language):
   
   if the cat is 15 load wp-layout.css2 else load wp-layout.css. Could one of the
   php guys / girls possibly help out with the syntax. ? Thanks. Edit: oh I forgot
   to mention podz as well. 🙂

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88894)
 * [http://wordpress.org/support/10/12028](http://wordpress.org/support/10/12028)
   
   Possibly close maybe ?
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88910)
 * Try this… where the importURL is for the style…..
    importURL( <?php if ($cat 
   = 15) { echo “path to style 15.css”;} else { echo “style to other posts.css”;}?
   > That’s just off the top of my head. I *think* that will work. TG
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88917)
 * TechGnome tx that looks cool but where is the @ ?
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88919)
 * :blank stare:
    HUH? What @? I see no @. Oh. I told you it was off the top of 
   my head…. If you *must* have 100% correct code….. [@import](https://wordpress.org/support/users/import/)
   url( <?php if ($cat = 15) { echo “path to style 15.css”;} else { echo “style 
   to other posts.css”; } ?> 🙂 Import url is two words, not one. ;P TG
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88927)
 * Looks cool . You know I am pretty thick. With php I cant afford to take any chances
   🙂
 *  Thread Starter [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88959)
 * Thanks for the help guys but I managed it without the php. Separate CSS for my
   single cat front page . Yay 🙂

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

The topic ‘Single Cat php CSS’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [Root](https://wordpress.org/support/users/root/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/single-cat-php-css/#post-88959)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
