Archived topic
Text in post header between navigation and header image
8 replies · Started by Robin on January 5, 2021
I'd like to put an affiliate disclaimer text in my post header (header element) between the navigation and the header image (featured image as background). I've created a hook element for the text and used the hook location "generate_header". That works as long as I don't enable mobile header which I really want to use. When I enable mobile header the text ends up above the navigation.
How can I solve this?
Hi there,
can you share a link to your site so i can see the layout
I've shared the link in the private information section. Ok?
Any suggestions on this?
Can you try generate_after_header instead?
That unfortunately moves it below the header image on both desktop and mobile.
Try setting the priority to 2:
https://docs.generatepress.com/article/hooks-element-overview/#settings
Thanks Leo!
Had to play around with it and setting it to 5 solved it.
No problem :)