Generally, you primary navigation will be hooked into the after header position.
To remove your primary nav menu from the front page of your site only, use this code:
Please copy ALL the code & paste it at the end of your child themes functions.php file using a text editor like Notepad++
Remove Primary Menu After Header
add_action('template_redirect', 'remove_primary_nav_front_page');
function remove_primary_nav_front_page() {
if ( is_front_page() ) }
remove_action('genesis_after_header', 'genesis_do_nav');
}
}
If you primary nav menu is displayed in the before header position, use this code.
Remove Primary Menu Before Header
add_action('template_redirect', 'remove_primary_nav_front_page');
function remove_primary_nav_front_page() {
if ( is_front_page() ) }
remove_action('genesis_before_header', 'genesis_do_nav');
}
}
Leave a Reply