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.

Share:
Share on Facebook0Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to use Change DB Prefix Plugin

Posted on 5 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi