If you’re creating a new theme you may immediately notice that menu options aren’t available in your wp-admin navigation. This is because you haven’t told your new theme that you’d like to begin using menus. In order to register menus that you’d like to work with, add the following to your functions.php file in your theme folder. If you don’t have a functions.php file yet, create one and add this:
function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ) ) ); } add_action( 'init', 'register_my_menus' );
If you leave it like this, you’ll have menu options and you’ll be able to edit the menu called “Header Menu” in your wp-admin section. You can add as many menus to the array as you’d like. Go crazy.
Here’s the WordPress Codex Documentation: http://codex.wordpress.org/Navigation_Menus
Cheers!
Recent Activity