Title: Multiple headers
Last modified: September 24, 2016

---

# Multiple headers

 *  [Nic727](https://wordpress.org/support/users/nic727/)
 * (@nic727)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multiple-headers-6/)
 * Hi,
 * I would like to know how to make a different header for different page.
    For 
   example, I would like my header for post, project and 404 to be different from
   my index page.
 * I read that
    [https://codex.wordpress.org/Function_Reference/get_header](https://codex.wordpress.org/Function_Reference/get_header)
 * But I don’t understand where to put
 *     ```
       <?php
       if ( is_home() ) :
       	get_header( 'home' );
       elseif ( is_404() ) :
       	get_header( '404' );
       else :
       	get_header();
       endif;
       ?>
       ```
   
 * Also, does the name of the header is the name of the menu?
 * Thank you

Viewing 1 replies (of 1 total)

 *  [scottiescotsman](https://wordpress.org/support/users/scottiescotsman/)
 * (@scottiescotsman)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multiple-headers-6/#post-8217261)
 * You need to create a custom header in your functions.php then add it to where
   you want it to be placed.

Viewing 1 replies (of 1 total)

The topic ‘Multiple headers’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [scottiescotsman](https://wordpress.org/support/users/scottiescotsman/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/multiple-headers-6/#post-8217261)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
