Archived topic
secondary navigation float right and below
1 reply · Started by Daniel on March 22, 2019
Hi Guys
I have this situation:

Both Primary and Secondary navigation customizer settings:
- Navigation Width: Contained
- Inner Navigation Width: Contained
- Navigation Alignment: Left
- Navigation Location: Float Right
And this CSS:
@media (min-width: 769px) {
.nav-float-right .site-logo {
float: left;
}
}
QUESTION: What's the best way to swap positions between them. I mean, primary navigation above and secondary navigation below?
Thanks in advance.
Hi there,
Try these functions:
add_action( 'wp', function() {
remove_action( 'generate_before_header_content', 'generate_add_secondary_navigation_float_right', 7 );
} );
add_action( 'generate_after_header_content', function() {
if ( function_exists( 'generate_secondary_navigation_position' ) ) {
generate_secondary_navigation_position();
}
}, 50 );
Let me know :)