Back to Top

How to use multiple headers in WordPress

Multi Header in Wordpress

Whenever you wanted to have a separate or different header in your WordPress theme, you are mostly used include function for including different headers as per conditions. So today I am going to show ways to use multiple headers in WordPress for different pages.

Method 1:

To call a particular header, you can create and include that file in require page, With the use of use of PHP, include() function, you can easily customize the header.

Method 2:

Other Method is to use get_header function with parameter.you can create new custom header file with name header-name.php and pass name value into the get_header function as argument.

Above code will automatically include header-home.php whenever the above defined function is called.

NOTE: using same method you can easily add Custom Footer, or Sidebar too.

As you can see, it’s very simple.I hope this little tutorial helps you with how to use multiple headers in WordPress.Again if you have any questions just drop me a comment. So that’s all for now.

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

PHP Error Reporting Levels

Posted on 12 years ago

Bhumi

How to add ColorDots in FullCalender?

Posted on 9 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 9 years ago

Bhumi