Hi there, first post so bare with me!
Long time lurker and client for sitepoint books, and I thought this is the right moment to become an active member,
I have a question about custom menus, see, I'm trying to understand the whole custom menu thing, but still not sure where to place things, hope somebody can send me in the right path, so here I go:
In my functions.php I got this:
Then, I have the menu structure like this:PHP Code:add_theme_support('nav-menus'); if ( function_exists('register_nav_menus')) {
register_nav_menus( array(
'main' => 'Main Nav'
) );
}
Then I have this, I assume, to call the dynamic menu:HTML Code:<div class="navbar"> <div class="navbar-inner"> <div class="container"> <ul class="nav"> <li class="active"><a href="#">Main Item</a></li> <li><a href="#">Item</a></li> <li><a href="#">Item</a></li> <li><a href="#">Item</a></li> </ul> </div> </div> </div>
So, at this point all what I have, those separated elements are ok, the question is, where is this going to be placed: <?php wp_nav_menu( array('menu' => 'Main', 'container' => 'nav' )); ?> or what should I do in order to make the dynamic menu works with my styles?PHP Code:<?php wp_nav_menu( array('menu' => 'Main', 'container' => 'nav' )); ?>
Thanks in advance!
A.



Reply With Quote

Bookmarks