Title: coding new header.php page properly
Last modified: August 19, 2016

---

# coding new header.php page properly

 *  [wolffw](https://wordpress.org/support/users/wolffw/)
 * (@wolffw)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/coding-new-headerphp-page-properly/)
 * Hello,
 * I currently have my blog in a virtual /blog/ directory. I want the blog header
   to be different from the headers on the other pages off my site.
 * I know how to create new templates and where to put them in the themes folder.
   What I am unsure of is how to code the page.php file properly so that it adds
   the alternate header template (headernew.php) and not header.php.
 * Thanks,
    BW

Viewing 1 replies (of 1 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/coding-new-headerphp-page-properly/#post-679425)
 * duplicate :
 * [http://wordpress.org/support/topic/151465?replies=1](http://wordpress.org/support/topic/151465?replies=1)

Viewing 1 replies (of 1 total)

The topic ‘coding new header.php page properly’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/coding-new-headerphp-page-properly/#post-679425)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
