How do I disable the secondary menu?

Community Forums Forums Design Tips and Tricks How do I disable the secondary menu?

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  theMikeD 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12168

    theMikeD
    Participant
    Post count: 20

    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

    unregister_nav_menu()

    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

    unregister_nav_menu(‘secondary’);

    but that didn’t do it. Anyone have any ideas? Or is there an easier way?

    #12172

    theMikeD
    Participant
    Post count: 20

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.