[wp-hackers] custom header on page template

James Tryon james at easilyamusedinc.com
Wed Mar 9 20:14:57 UTC 2011


It might not be the best way to do this, but you could just copy everything and change what you need to the new header files

and replace your <?php get_header() ?> with <?php locate_template( array('header-photo.php'), true ); ?> in your page template.

-James Tryon


On Mar 9, 2011, at 3:05 PM, Martin Trtílek wrote:

> Hi all :-)
> i have one page template called ...for example photo and additional header
> called header-photo.php.
> If i try write get_header('photo'); on photo page template so page still
> loads my default header (header.php) but i want to load the photo header.
> Is there way, how to accomplish this? I'm search on web but wit no success
> solution.
> Thanks.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list