- This topic has 3 replies, 2 voices, and was last updated 7 years, 10 months ago by .
- The topic ‘Moving Navigation Menu In Sample Theme’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I want to customize the sample theme header section.
My objective is:
1. To move the primary navigation menu to the top (before the logo section)
2. To move the secondary navigation menu just after the logo section
I've already achieved moving the primary menu to the top using the following php function
add_action( 'genesis_header', 'genesis_do_nav', 0);
But it created a duplicate of the primary navigation menu
It looks like this :
I want it to look like this:
Thanks a lot for your help!
or adding this plugin to your site
will identify the hooks
Genesis snippets re: moving navigation:
Here's why your add action duplicated the navigation.
the Genesis function:
The Genesis function – genesis(); – automatically includes Genesis wrapper(s) and: header/navigation |content | sidebar(s) | footer
Which is why Genesis tutorials and snippets have remove action(s)/add action(s) needed to customize the output.
Also why genesis();is at the bottom of all page templates. Everything above that function modifies its output.
Thank you very much Kellylise !
I'll look into this and make the modifications!
Have a great weekend,
© 2022 WPEngine, Inc.