Conditionally remove secondary menu
<?php | |
// Conditionally remove secondary menu | |
add_action('template_redirect', 'afn_conditional_actions'); | |
function afn_conditional_actions() { | |
if ( is_page( 10 ) ) { | |
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