Moving Navigation Menu In Sample Theme

Community Forums Forums General Discussion Moving Navigation Menu In Sample Theme

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Miguel 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #114929

    Miguel
    Member
    Post count: 2

    Hello,

    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 :
    Primary menu
    Header (logo)
    Primary menu
    Secondary menu

    I want it to look like this:
    Primary menu
    Header (logo)
    Secondary menu

    Thanks a lot for your help!

    Miguel

    #114935

    Kellylise
    Participant
    Post count: 475

    Using:

    http://genesistutorials.com/visual-hook-guide/

    or adding this plugin to your site

    https://wordpress.org/plugins/genesis-visual-hook-guide/

    will identify the hooks

    Genesis snippets re: moving navigation:

    http://my.studiopress.com/snippets/navigation-menus/

    #114937

    Kellylise
    Participant
    Post count: 475

    Here’s why your add action duplicated the navigation. genesis();

    http://designsbynickthegeek.com/tutorials/genesis-explained-the-framework

    the Genesis function:

    <?php
     
    genesis();

    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.

    • This reply was modified 4 months ago by  Kellylise.
    • This reply was modified 4 months ago by  Kellylise.
    #114962

    Miguel
    Member
    Post count: 2

    Thank you very much Kellylise !

    I’ll look into this and make the modifications!

    Have a great weekend,

    Miguel

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Moving Navigation Menu In Sample Theme’ is closed to new replies.