In your other templates (e.g. page templates) you can use these conventions to call different headers, footers, sidebars:
* get_header(‘myheader’) will include header-myheader.php
* get_footer(‘myfooter’) will include footer-myfooter.php
* get_sidebar(‘mysidebar’) will include sidebar-mysidebar.php
Related:
Templates
Stepping Into Templates
Template Hierarchy
thank you michael! shall test it out and see how it goes 🙂
Hi,
I’ve tried creating a new “my page” template with this code included: get header(‘myheader’). Uploaded the new myheader.php.
I can select my page template to be used but I am seeing the old header appearing on site. Did I miss out anything in order to use a different header?
Thanks.
Uploaded the new myheader.php.
I’d think if you rename that file to header-myheader.php it would work.
thanks, it really worked. however the template displays wrong header image file. where should I tweak in order to point to the correct new header image? Thanks!
I should point you to Designing_Headers.