Tagged: menu unregister
I'd like to disable the Secondary Menu built in to genesis that my custom theme is not using and remove it from the admin UI. I understand that I should be using
to accomplish this, but I'm unsure what the secondary menu is named. I scanned the genesis code and found
add_theme_support( 'genesis-menus', array(
'primary' => __( 'Primary Navigation Menu', 'genesis' ),
'secondary' => __( 'Secondary Navigation Menu', 'genesis' ),
so I tried
but that didn't do it. Anyone have any ideas? Or is there an easier way?
OK, I did it in a backhanded way by doing this:
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );
IOW only defining the main menu.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!