In GenesisWP Facebook group a user wants to know:
Does anyone know how to move the secondary menu to below the slider on Outreach Pro?
We can assign a menu to secondary navigation location, remove it only from the front page and display it between Home – Top and Home – Bottom widget areas in Outreach Pro.
Secondary nav will continue to appear in its usual place, below the header on inner pages.
Step 1
Add the following in Outreach Pro’s functions.php:
// Remove the secondary navigation menu on front page
add_action( 'genesis_header', 'sk_conditional_secondary_nav' );
function sk_conditional_secondary_nav() {
// if we are not on front page, abort.
if ( !is_front_page() ) {
return;
}
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
}
Step 2
In front-page.php, add
//* Add secondary navigation
add_action( 'genesis_before_footer', 'genesis_do_subnav', 1 );
below
//* Add home top widgets
add_action( 'genesis_loop', 'outreach_home_top_widgets' );
Step 3
In style.css add
.nav-secondary {
background-color: #111;
}
.nav-secondary .wrap {
margin-bottom: 0;
}