Archived topic
How to use primary and secondary navigation in between topbar?
3 replies · Started by Pankaj on November 6, 2021
Hello,
Can you guys please help me with: How to use primary and secondary navigation in between top bar?
Currently I have top bar at top and I want to show logo and a menu there, just bellow that I want to show Top bar and then menu.
Can you please help me?
Hi there,
1, set your Primary Navigation > Location to Float Right. So its with the site header to the side of the site logo.
2. set your Secondary Navigation > Location to After Header.
3. Add the following PHP Snippet to unhook the top bar and hook it i between the site header and secondary nav.
add_action('wp', function(){
remove_action( 'generate_before_header', 'generate_top_bar', 5 );
add_action( 'generate_after_header', 'generate_top_bar', 1 );
});
Resolved.
Glad to hear that