Title: Add second Header
Last modified: August 19, 2016

---

# Add second Header

 *  [WEBWPUSER](https://wordpress.org/support/users/webwpuser/)
 * (@webwpuser)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/add-second-header/)
 * In myne theme i use a flashanimation in the header. But the flashanimation play
   also if you select a other page.
 * So i make a extra pagetemplate and replace <?php get_header(); ?> to <?php get_headerextra();?
   > and dupicate header.php and rename it to headerextra.php. In the headerextra.
   php a remove the flasanimation.
 * But now i get the error “Fatal error: Call to undefined function get_headerextra()”.
 * Is there somebody who can help me with this?

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

 *  [dlmfisher](https://wordpress.org/support/users/dlmfisher/)
 * (@dlmfisher)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/add-second-header/#post-998507)
 * You have to update the functions file if you do it that way. What I did is create
   header2.php, and then I used the line /<?php include(TEMPLATEPATH.”/header2.php”);?
   >/ instead of /<?php get_header2(); ?>/
 *  [everafter](https://wordpress.org/support/users/everafter/)
 * (@everafter)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/add-second-header/#post-998758)
 * I have the same problem…but i’m new for WP…can you explain how i shoud change
   the functions file exactly , please =/
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/add-second-header/#post-998759)
 * Replace `<?php get_header(); ?>` with `<?php include(TEMPLATEPATH."/header2.php");?
   >` in the template files that you would like to use the alternative header.

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

The topic ‘Add second Header’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/add-second-header/#post-998759)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
