Please help with menu registeration:
I have followed this guide (http://codex.wordpress.org/Navigation_Menus) step by step.
Added the following code to functions.php:
function register_my_menus() {
register_nav_menus(
array('header-menu' => __( 'Header Menu' ) )
);
}
add_action( 'init', 'register_my_menus' );
But the guide says that this will make the menu appear in the Appearance -> Menus admin screen in the “Theme Locations” box as “Header Menu”.
When I go to Appearance -> Menus everything is greyed out and there is no option of “Theme Locations”
You don’t need to add any action to register your Nav Menu. Here are some quick steps for you to get your WordPress Nav Menu to work…
Register Nav Menu
Define and Use Nav Menu in your Theme:
Usually we place the Menu DIV code in header.php file; so I assume yours is also in header.php file. Open that file and locate the DIV container where you wish your WordPress NAV menu to appear. Here is a sample from one of my recent WordPress themes for your ready reference:
Once you add this code, go to your WP Admin – Menus. Create a new Menu, if you don’t have any yet. As soon as you create a menu, you should see “Theme Location” meta box to the left side of your Menu Item arranger area.
I hope this helps. 🙂
Cheers,
Ruturaj.