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 2 replies, has 3 voices, and was last updated by  braddalton 4 months ago.

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

    tribalcafe
    Participant
    Post count: 5

    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: 3147

    I just applied the the snippet to my test side using the Minimum theme, and it worked:

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

    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’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #11566

    braddalton
    Participant
    Post count: 2455

    /** 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


    WordPress Developer & Consultant
    Brad Dalton @ WP SitesClick Here to Get Genesis Child Theme Tips Delivered.

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

You must be logged in to reply to this topic.