move sub nav (secondary navigation above header

Community Forums Forums Design Tips and Tricks move sub nav (secondary navigation above header

This topic is: not resolved

This topic contains 3 replies, has 4 voices, and was last updated by  eliserochelle 1 year, 3 months ago.

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

    tribalcafe
    Participant
    Post count: 8

    I am looking for some on how to move the secondary navigation menu above the header in the minimum theme. I have tried this piece of code but it doesn’t work

    /** Reposition the secondary navigation menu */
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_header', 'genesis_do_subnav' );

    any help appreciated

     

    #11565

    Susan
    Moderator
    Post count: 8972

    I just applied the the snippet to my test side using the Minimum theme, and it worked:
    [php]
    /** Reposition the secondary navigation menu */
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
    add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );
    [/php]
    Where did you add the snippet?
    Can you please provide a link to your site, so I can take a look?


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #11566

    braddalton
    Participant
    Post count: 9784

    /** Reposition the secondary navigation menu */
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_header', 'genesis_do_subnav' );

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

    Paste the code in to your child themes functions.php file

    Backup first


    #42892

    eliserochelle
    Participant
    Post count: 14

    Hey thanks this worked for me also :)

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

You must be logged in to reply to this topic.