Last active
December 19, 2015 19:09
-
-
Save wpspeak/6004484 to your computer and use it in GitHub Desktop.
Conditionally remove secondary menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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