Support » Themes and Templates » [Resolved] Native Navigation/Menu Problem

[Resolved] Native Navigation/Menu Problem

  • 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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Native Navigation/Menu Problem’ is closed to new replies.