Support » Themes and Templates » custom navigation menu appears on web page but not in admin appearance > menus

  • Hey all,

    header.php:

    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’) ); ?>

    functions.php:

    add_action(‘init’, ‘menu_register’);

    function menu_register() {
    register_nav_menus( array(
    ‘primary’ => __( ‘Primary Navigation’, ‘GuardDog Theme’ ),
    ) );
    }

    Then I go to appearance > themes and it just gives me an option to “Create Menu” but I was expecting the primary navigation menu to be already created.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom navigation menu appears on web page but not in admin appearance > menus’ is closed to new replies.