I have created a custom page template for my wordpress theme that uses a custom header-file:
get_header('custom');
Everything works as expected, but when I set a page to be the Posts-Page somehow the standard header-file gets loaded instead (my custom page template is activated).
I have also tried to override the blog.php from the parent and added the explicit call to my custom header-file, but it didn’t have any effect.
What am I doing wrong? How does this work?
You should override
home.php
A bit more information
home.php
is the template used for the blog homepage (the page with all blogposts). You can learn more about which templates are being used where in the template hierarchy documentation: http://codex.wordpress.org/Template_HierarchyThe solution was to override
home.php
.