Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save braddalton/5767941 to your computer and use it in GitHub Desktop.
Save braddalton/5767941 to your computer and use it in GitHub Desktop.
Remove Secondary Category Menu Exclude Posts & Archives https://wpsites.net/web-design/conditionally-remove-your-primary-secondary-nav-menu/
add_action('genesis_meta', 'remove_category_menu_exclude_archives_posts');
function remove_category_menu_exclude_archives_posts() {
if ( !is_archive() && !is_single() && !is_page('blog') )
remove_action('genesis_after_header', 'genesis_do_subnav');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment