[Resolved] After Head Hook, before Nav

Home Forums Support [Resolved] After Head Hook, before Nav

Home Forums Support After Head Hook, before Nav

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #155870
    Adrian Cojocariu

    Hey Tom.

    Any chance of placing the after header hook between the header and the nav ?

    You helped me with something similar here.

    https://generatepress.com/forums/topic/before-header-vs-navmenu/

    This is how I want it to look.

    #155889
    Tom
    Lead Developer
    Lead Developer

    Hi Adrian,

    Give this a shot:

    add_action( 'after_setup_theme','generate_move_after_header_nav' );
    function generate_move_after_header_nav()
    {
          remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
          add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 );
    }
    #155920
    Adrian Cojocariu

    Thanks Tom ! It worked like a charm ! You gotta teach me these tricks sometime so I stop buggin’ you ๐Ÿ˜€

    #155984
    Tom
    Lead Developer
    Lead Developer

    Awesome! This is just a matter of changing priorities (the number after the hook) ๐Ÿ™‚

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