Archived topic
After Head Hook, before Nav
3 replies · Started by Adrian Cojocariu on November 26, 2015
Viewing posts 1–4 of 4
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/
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 );
}
Thanks Tom ! It worked like a charm ! You gotta teach me these tricks sometime so I stop buggin' you :D
Awesome! This is just a matter of changing priorities (the number after the hook) :)
This archived topic is closed to new replies.
