Archived topic
Navigations and Header order
1 reply · Started by gbebrokers on January 9, 2018
I would like to put The secondary navigation at the top of the page the primary navigation under the secondary navigation and the header under the primary navigation.I put the primary navigation and secondary navigation Navigation Location = Above Header but the primary navigation goes at the top and secondary under the Primary navigation. How to change the order as described above? Thank in advanced.
Hi there,
Try this snippet:
add_action( 'after_setup_theme','generate_move_before_header_nav' );
function generate_move_before_header_nav()
{
remove_action( 'generate_before_header', 'generate_add_navigation_before_header', 5 );
add_action( 'generate_before_header', 'generate_add_navigation_before_header', 15 );
}
Adding PHP: https://docs.generatepress.com/article/adding-php/