Title: Adding a Second Header.php file
Last modified: August 19, 2016

---

# Adding a Second Header.php file

 *  [AndyBrinkworth](https://wordpress.org/support/users/andybrinkworth/)
 * (@andybrinkworth)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/)
 * I am currently trying to add a second header.php file to my blog.
 * I have a flash file in the header.php file that I want to show on the index but
   I want a static .jpg image to show on my Pages and Posts.
 * I have done this before but I cannot for the life of me remember how!
 * I have currently tried this: <?php get_header(header2.php); ?>
    and this: <?php
   get_header(header2); ?> and this: <?php get_header(‘header2’); ?>
 * Can anyone help me?
    Thank you so much in advance

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

 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/#post-1391872)
 * From:
    [http://codex.wordpress.org/Function_Reference/get_header](http://codex.wordpress.org/Function_Reference/get_header)
 * **Examples**
    Include non-default header
 * This example will include header-myheader.php
 *     ```
       <?php
       get_header('myheader');
       ?>
       ```
   
 *  Thread Starter [AndyBrinkworth](https://wordpress.org/support/users/andybrinkworth/)
 * (@andybrinkworth)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/#post-1392047)
 * Sorry , i tried that and it didn’t work.
 * Does anyone else have an idea?
 *  [jon](https://wordpress.org/support/users/adiant/)
 * (@adiant)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/#post-1392054)
 * Just to clarify:
    You renamed your special header file to header-header2.php 
   You coded `<?php get_header('header2'); ?>`
 * Right?
 * And what happened?
 *  [foxeye](https://wordpress.org/support/users/foxeye/)
 * (@foxeye)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/#post-1392152)
 * Let me answer this. It just works this way. Easy enough.

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

The topic ‘Adding a Second Header.php file’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [foxeye](https://wordpress.org/support/users/foxeye/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/adding-a-second-headerphp-file/#post-1392152)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
