Title: Header doesn&#039;t work!
Last modified: August 20, 2016

---

# Header doesn't work!

 *  [Ant94](https://wordpress.org/support/users/ant94/)
 * (@ant94)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/header-doesnt-work/)
 * I made a few layouts for my pages. I choose them during adding new page. Unfortunately,
   they are displayed on the website with classical layout made for other pages.
 * In the ‘special layouts’ for some pages I wanted to make different header. I 
   made it by:
 *     ```
       <?php
       /*
       Template Name: PagePortrait
       */
       ?>	
   
       <?php get_header('portrait'); ?>
   
       <div class="title"><h1><?php wp_title(' '); ?></h1></div>
       		<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
       		<?php the_content(); ?>
       		<?php endwhile; ?>
   
       <?php get_footer(); ?>
       ```
   
 * and the name of file with header is: header-portrait.php
 * Why this happens? What should I change?

The topic ‘Header doesn't work!’ is closed to new replies.

## Tags

 * [doesn't work](https://wordpress.org/support/topic-tag/doesnt-work/)
 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [headers](https://wordpress.org/support/topic-tag/headers/)
 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ant94](https://wordpress.org/support/users/ant94/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/header-doesnt-work/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
