Header doesn't 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.