Re: Hooking into get_header to replace header.php in certain files?
Hey,
yep, you can do it that way.
Just fyi, get_header() also accepts one variable, $name. So if you write this in a template:
get_header('blog');
then WP will look for a file called header-blog.php in your theme files and include that one instead your normal header.php file.
Have a look at the get_header function. Maybe you’re lucky and there’s a filter applied to $name. Then you could just write a function that does it all for you and you won’t even have to touch the header.php file in your parents theme.