[Resolved] Change order of Header

Home Forums Support [Resolved] Change order of Header

Home Forums Support Change order of Header

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #353583
    Tom

    Hello, I am starting to dig into GeneratePress and trying to do something simple (at least I thought it was :).

    I would like to have the Secondary Menu at the top, then Primary Menu then Header. So far if I put the primary menu above Header in the customizer then I can’t have the Secondary Menu above that?

    Am I missing something or is this a restriction?

    Thanks,

    -Tom

    #353590
    Leo
    Staff
    Customer Support

    Hi there,

    Try inserting the secondary navigation in the top bar widget area: https://docs.generatepress.com/article/top-bar-widget-area/

    Let me know if this solution works for you ๐Ÿ™‚

    #353797
    Tom
    Lead Developer
    Lead Developer

    That adds the top bar widget area into the secondary navigation, so it will still display below the primary navigation.

    Try adding this function:

    add_action( 'after_setup_theme', 'tu_move_secondary_nav' );
    function tu_move_secondary_nav() {
        remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
        add_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 2 );
    }
    #354786
    Tom

    Both options are workable so I looks like I am good there.

    Thanks!

    #354828
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.