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,
The topic ‘Moving Navigation Menu In Sample Theme’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?