Title: trouble calling different header.php for home.php
Last modified: August 20, 2016

---

# trouble calling different header.php for home.php

 *  Resolved [alexisfrsh](https://wordpress.org/support/users/alexisfrsh/)
 * (@alexisfrsh)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/trouble-calling-different-headerphp-for-homephp/)
 * I’m making a site that uses the same header.php for all pages except the blog/
   home.php. For this, I’ve created [blog-header.php](http://pastebin.com/KkQqeirc)
   and am attempting to call it using the following:
 *     ```
       <?php if( is_page(15) ) {
       echo get_template_part( 'blog', 'header' );}
       else {
       echo get_header(); } ?>
       ```
   
 * However, it doesn’t seem to be working. Any ideas on why that may be?
 * (Unfortunately, the site isn’t live yet otherwise I’d provide a link.)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/trouble-calling-different-headerphp-for-homephp/#post-3062357)
 * Rename the file header-bog.php and use `<?php get_header( 'blog');?>`
 *  Thread Starter [alexisfrsh](https://wordpress.org/support/users/alexisfrsh/)
 * (@alexisfrsh)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/trouble-calling-different-headerphp-for-homephp/#post-3062363)
 * What a life-saver, thank you!

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

The topic ‘trouble calling different header.php for home.php’ is closed to new replies.

## Tags

 * [Alternate](https://wordpress.org/support/topic-tag/alternate/)
 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [alexisfrsh](https://wordpress.org/support/users/alexisfrsh/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/trouble-calling-different-headerphp-for-homephp/#post-3062363)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
