Title: Conditional tags in header
Last modified: August 19, 2016

---

# Conditional tags in header

 *  [michaelphill](https://wordpress.org/support/users/michaelphill/)
 * (@michaelphill)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/conditional-tags-in-header-1/)
 * I’m trying to use the same header across my entire site and have successfully
   used conditional tags to generate a separate front page and single post page 
   using this code:
 * `
    <!–START HOME–><?php if ( is_home() ) { ?>
 * HTML CODE GOES HERE FOR FRONT PAGE
 * <?php } ?>
    <!–END HOME–>
 * <!–START INSIDE–>
    <?php if ( is_single() ) { ?>
 * HTML CODE GOES HERE FOR INSIDE PAGES
 * <?php } ?>
    <!–END INSIDE–>
 * However, I’d like the code where you see the words “HTML CODE GOES HERE FOR INSIDE
   PAGES” to apply to every page except the front page (i.e. category pages, archive
   pages). I’m not using some of the WordPress pages (such as the tag pages). I 
   only know a little PHP and haven’t been able to figure out the correct code to
   get this to work.

Viewing 1 replies (of 1 total)

 *  [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * (@greenshady)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/conditional-tags-in-header-1/#post-759843)
 * Use:
 *     ```
       if(!is_home())
       ```
   
 * Or, for WP 2.5 only:
 *     ```
       if(!is_front_page())
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Conditional tags in header’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/conditional-tags-in-header-1/#post-759843)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
