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.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.