Skip to content

Instantly share code, notes, and snippets.

@wpspeak wpspeak/functions.php
Last active Dec 19, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.