Archived topic
Place Top bar between header and hero
5 replies · Started by Ludger on January 9, 2019
Hello,
we want to place a hook just between the header and the hero content.
For me the header is ending with the navigation:
<-- Some top bar hook with logo -->
<-- Horizontal menu -->
<-- PLACE HERE - Container Hook -->
<-- Hero Content from "Elements"-"Header" -->
On the current website just under the navigation.
Best,
FStrategies
Hi there,
you can use the Hook Element and the after_header hook to add content there:
https://docs.generatepress.com/article/hooks-element-overview/
Hi,
thanks for your reply.
Unfortunately this is not working.
I tried every hook position before posting here...
Current situation:
- Hook for the bar is set to "after_header"
- Customizer - layout - main navigation - position: change to something - then change back to after_header/under header.
- Preview shows the correct position of the bar: Header - Navigation - Bar - Hero
- I click on save
- On home page the bar is still above navigation
I updated all files.
I can also give you access to the page. Trying it for hours now..
Best regards
This visual guide shows all the hooks.
https://docs.generatepress.com/article/hooks-visual-guide/
If the navigation is set to after header then you may need to increase the priority to 15 or higher on your after_header hook.
If not provide us with the login so we can see the site, you can post a guest user login here if you want as the URL is only visible to admins.
Hi David,
just solved it!!
I have to set the priority between 5-8...
Otherwise it will be displayed above the menu or under the hero image.
Thats great glad you found it :)