Title: Conditional Tag In Header Template
Last modified: August 19, 2016

---

# Conditional Tag In Header Template

 *  [chrisgwynne](https://wordpress.org/support/users/chrisgwynne/)
 * (@chrisgwynne)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/conditional-tag-in-header-template/)
 * I’m trying to change something in the header template, if the header is being
   called from a certain category page. If that’s possible?
 * My code right now looks like…
 *     ```
       <?php if ( is_category(1)) { ?>
       <div id="CERTAINCATPAGE">
       <?php } else { ?>
       <div id="container">
       <?php } ?>
       ```
   
 * However this doesn’t seem to work? Any ideas?

Viewing 1 replies (of 1 total)

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/conditional-tag-in-header-template/#post-1261382)
 * What doesn’t work about it?

Viewing 1 replies (of 1 total)

The topic ‘Conditional Tag In Header Template’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/conditional-tag-in-header-template/#post-1261382)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
