How to assign a customized theme location for a custom navigation menu
-
My target is to customize an existing theme by child theme, I am using TwentyEleven / 2011 theme, and started to modify it using child theme.
Now my target is to : customize header navigation menu items. Now all coming from 2011 theme.
Also the function of register_nav_menus() is not clear to me in theme functions file. I have read it in codex,
My main queries is:
1) how a menu is positioned in any location?
2) say I have created a menu from dash board .. menu name : personal. Then added 3 menus e.g Google (pointing Google.com) , Yahoo (pointing Yahoo.com) and bing (pointing msn.com)In dashboard theme location shows dropdown Primary menu. I think this comes from functions.php file of \wordpress-3.4.2\wp-content\themes\twentyeleven\ folder and the following line is responsible for it.
register_nav_menu( ‘primary’, __( ‘Primary Menu’, ‘twentyeleven’ ) );
But my menu name is PERSONAL, I want to post it anywhere I want in WP Template of This child theme. I think in the above line theme location is primary, where shall I declare a theme location for a custom location?
Menu addition is okay, but what is theme location where this menu will be shown ?
Thanks
Bikram
- The topic ‘How to assign a customized theme location for a custom navigation menu’ is closed to new replies.