Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Created June 7, 2014 14:46
Show Gist options
  • Save SiGaCode/e8d0ef41b9701cdd8096 to your computer and use it in GitHub Desktop.
Save SiGaCode/e8d0ef41b9701cdd8096 to your computer and use it in GitHub Desktop.
Shows a chosen menu only on pages with a certain label:
//* Remove the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action('genesis_meta','dynamik_show_primary_navigation');
function dynamik_show_primary_navigation() {
if ( dynamik_has_label('show-primary-navigation') ) {
add_action( 'genesis_header_right', 'genesis_do_nav' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment