Skip to content

Instantly share code, notes, and snippets.



Last active Dec 19, 2015
What would you like to do?
Conditionally remove secondary menu
// 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.