Home › Forums › Support › Sticky secondary menu › Reply To: Sticky secondary menu
September 10, 2018 at 6:25 am
#673193
David
Staff
Customer Support
There are a couple of options, we can for-go the GP Sticky navigation, and use the sticky
CSS property on both navs.
Or we could use a snippet like so, which removes a before header secondary navigation and hooks it inside the primary nav, which will make both sticky:
add_action( 'after_setup_theme', 'lh_move_secondary_nav' );
function lh_move_secondary_nav() {
remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
add_action( 'generate_inside_navigation', 'generate_add_secondary_navigation_before_header', 7 );
}
In both instances this would require site specific CSS to format and style. But nothing too complicated.