Find out how to modify the location of the main 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.
Snippet to reposition the primary navigation menu
Add this fragment at the end of the functions.php file:
To see this and another 1097 code snippets of this website, login or subscribe here.
With this code you place the main menu on the right side of the header (genesis_header_right
).
In the same way, you also have the option to position it before the header using the genesis_before_header
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 secondary navigation menu.
Conclusions
Now you know how to change the location of the primary navigation menu in any Genesis child theme to the hook that suits you best.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂