Find out how to modify the location of the secondary navigation menu in any Genesis Framework child theme with a couple of code lines.
Moving the position of menus is easy with Genesis Framework hooks.
You’ll see. 😉
Snippet to reposition the secondary navigation menu
Add this fragment at the end of the functions.php file:
To see this and another 997 code snippets of this website, login or subscribe here.
With this code you pass the secondary menu of the previous area (genesis_before_header
) to after the header (genesis_after_header
).
In the same way, you also have the option to position it on the right side of the header using the genesis_header_right
hook.
If you are not yet familiar with the different areas where you can hook items, I recommend that you use the Genesis Visual Hook Guide plugin.
If you’re reading this tutorial, you may also be interested in the code for relocating the primary navigation menu.
Conclusions
Now you know how to change the location of the secondary navigation menu in any Genesis child theme to the hook that suits you best.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉