Skip to main content

Use Multiple Custom Header In Wordpress

Do you use the Wordpress for your website? If yes than I am going to tell you how can use multiple header in wordpress.

Step 1. Create Header Files.

Step 2. Create as many different headers as you want. (For Example : header1.php, header2.php and header3.php)

Step 3. Replace the content of your header.php file with the following code :-





<?php
    if (is_page('page1')){
              <?php include(TEMPLATEPATH. '/header1.php');  ?>
    }
    elseif (is_page('page1')){
             <?php include(TEMPLATEPATH. '/header2.php');  ?>
     }
    else{
              <?php include(TEMPLATEPATH. '/header3.php');  ?>
}
?>
Enjoy it!!!!