Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.