Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/** display secondary menu only on chosen page **/
add_action( 'template_redirect', 'child_conditional_actions' );
function child_conditional_actions() {
if ( !is_page( 8 ) )
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