Archived topic
Page Header Element on frontpage static page
7 replies · Started by Jarko on August 19, 2021
When using the Home Page Header Element it works fine until I want to set the Customizing, Homepage Settings, A static page
Then the Home Page Header Element isn't shown on the static page. What could be wrong?
Thanks
Hi there,
what Display Rules do you have set in the Header Element ?
The Display Rules for the Location is the start page, if I change the start page in Homepage Settings, A static page then the hook is working but not when its the start page ;(
Hi Jarko,
Not sure I fully understand your last reply, and I can't access your site, just want to make sure:
1. The location of the header element is set to Frontpage?
2. Is your homepage/front page a static page?
3. Did you set this page as homepage at dashboard > settings > reading?
Can you also check if there are any display rule conflicts from other elements?
Let me know :)
Found the problem if I set the display rule location to page and select the page "hem" ("Hem" is set to static page for homepage) it doesn't work but if I set the location rule to front page instead then it works. not sure why it doesn't work when having location to specific page when its a static page for homepage.
Thanks
Ah, I see, yes, the display rule has to follow the logic defined by WordPress.
You can have a look at the conditional tags of WordPress:
https://codex.wordpress.org/Conditional_Tags
Hope this is helpful :)
thanks closing
You are welcome :)