Archived topic
Page Specific Headers
1 reply · Started by Matt Stern on April 9, 2018
Hi Tom and Leo,
Could you direct/guide me on how to create specific headers for individual pages? This is for the main header above GP Premium page headers.
In another thread you wrote this:
"If you want the main header (where I have the GeneratePress logo above) to be different on each page, you’ll need to use the GP Hooks addon, and use PHP conditionals to target specific pages and show their respective headers?
Would you elaborate on the hooks and php conditionals?
Thanks much!
-Matt
Hi Matt,
You will likely be using the Before Header Content hook:
http://demo.generatepress.com/hook-locations/
https://docs.generatepress.com/article/hooks-overview/
and the page specific conditional tag:
https://docs.generatepress.com/article/using-hooks-conditional-tags/#static-pages
https://codex.wordpress.org/Conditional_Tags#A_PAGE_Page
Let me know if this helps or if you need more info :)
Might help if you can disable the maintenance page so I can see your site as well.