I just double checked that the correct page template is in place. I also tried<?php get_template_part('templates/page-header-logbook'); ?> which didnāt do the trick. I think Iāll play with a fresh local installation on XAMPP and see if itās the same there.
Working on a new project, I ran into the same issue again (didnāt solve the former, btw). It seems this is only the case with the page-header for the blog. Can anybody confirm this? The file structure basically works as Iām using individual background-images per page, itās just an issue with the page-header for the blog.
As I have a limited number of pages, itās not a big deal to use a custom page-header per page and modify the default page-header as needed for the blog. However, I think this is not the way things should workā¦
Thanks, I_dudzic, no, itās not adblocking and itās not utilizing a name which is related to spam. And as I said it works perhaectly on pages, categories and tags.
Create/select a page in your backend which the blog will be associated with, for ease of explanation, letās name the page āBlogā
copy base.php to base-index.blog.php
copy index.php to index-blog.php
Now you can edit the first line to use a custom page-header with it (āheader-blogā) and create a custom pageheader by copying page-header.php to page-header-blog.php
It wouldnāt work with just modifying index.php and creating a custom page header for all the other pages as the index.phpās page-header would be pulled for archive pages as well, so one had to create a custom page header for every category or tag if thatās noit desired.