Move Nav div into Header div

Community Forums Forums Design Tips and Tricks Move Nav div into Header div

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  optimus203 8 months ago.

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

    optimus203
    Participant
    Post count: 22

    I see this code in the snippets, but this move the menu to the top of the Header div. I would like to reposition the Nav div so that it sits within the Header div but below the logo. Using the Outreach theme if that matters.

    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );
    #73130

    Robin
    Participant
    Post count: 291

    I think you want to change genesis_before_header to just genesis_header, but you may need to also add a priority number to the line as well. Possibly:

    add_action( 'genesis_header', 'genesis_do_nav', 10 );

    10 is just a guess–you may have to try different numbers–a larger number would move it lower down in the header.

    Here’s a Visual Hook Guide which might be really helpful.

    HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    #74720

    optimus203
    Participant
    Post count: 22

    That worked. Thanks Robin!

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

The topic ‘Move Nav div into Header div’ is closed to new replies.