Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Created March 1, 2016 21:31
Show Gist options
  • Save jpmarchand/8c7b208000a0420801d5 to your computer and use it in GitHub Desktop.
Save jpmarchand/8c7b208000a0420801d5 to your computer and use it in GitHub Desktop.
Unregister navigations menus in Genesis. Source: https://my.studiopress.com/snippets/navigation-menus/
<?php
//* Unregister both primary and secondary navigation menus in Genesis
remove_theme_support( 'genesis-menus' );
<?php
//* Unregister the primary navigation menu in Genesis
add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );
<?php
//* Unregister the secondary navigation menu in Genesis
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment