[resolved] Native Navigation/Menu Problem (2 posts)

  1. DarkDot
    Posted 4 years ago #

    Hey All,

    I'm creating a custom theme and wanted to use wordpress' custom navigation which has to be enabled.

    In my functions.php this is the code I have:

    add_action( 'init', 'register_my_menu' );
    function register_my_menu() {
    	register_nav_menu( 'main-menu', __( 'Main Menu' ) );

    Then in my theme where I want it to appear I have:

    <?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>

    In the admin section of wordpress I can create a menu but once I do and save it and navigate away from the menu page of the admin section and then go back to that section to edit the menu its all greyed out and all I can do is create a new menu. If i type in the name of a menu I created it just says a menu with that name has already been created make a menu with a different name.

    I know that I should be able to see and edit the menus I created already in the admin section but obviously can't. So what am I missing or doing wrong?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try reviewing Navigation_Menus.

Topic Closed

This topic has been closed to new replies.

About this Topic