by Bhumi // Dec 23,2012 // No comment
Whenever you wanted to have 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 call custom headers for different pages in wordpress.
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.
|
1 2 |
include(TEMPLATEPATH.'/header-new.php'); |
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.
|
1 2 |
get_header('home'); |
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.
Jquery Tabs in wordpress without plugin
Before today, I was using plugin for add tabbing in wordpress. but today I have tried one thing to use tabbing in wordpress without plugin READ MORE
Customize Upload mime types in wordpress
Here in this quick post,I am going to explain about how to customize media uploads types in wordpress. In the latest version of wordPress, you READ MORE
To add custom column to the list page in WordPress
WordPress is a great platform for building any kind of web sites and it has a sufficient back-end but sometime you need to make changes READ MORE
Are You Making The Most From WordPress? Check Now!
WordPress is easy. It lets you create your website quickly. It is free and highly search engine friendly. But, do you really think that you READ MORE
Customize Contact Form 7 in WordPress
Contact Form 7 is the most used form generator plugin to set dynamic form in wordpress.As you know, Contact Form 7 is a plugin and READ MORE
Be a Contributor at CreativeDev.Write an article or tutorial to the community and share some of your knowledge!