[theme-reviewers] Menu Issues

Phillip Wells phillipwells at hotmail.co.nz
Fri Oct 4 08:16:30 UTC 2013


I am currently developing a theme and i have this line <?php wp_nav_menu(
array( 'theme_location' => 'primary', 'menu_class' => 'nav' ) ); ?>
now what happens is when i define a menu i get this output from wordpress<div class="menu-single-level-container">
<ul id="menu-single-level" class="nav">
<li id="menu-item-1739" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1739"><a href="http://windowsservertutorials.x10.mx/test/wordpress/?page_id=2">Sample Page</a></li>
</ul></div>			<div class="side-bg"></div>

When i don't define a menu i get this

<div class="nav">
<ul>
<li ><a href="http://windowsservertutorials.x10.mx/test/wordpress/" title="Home">Home</a></li><li class="page_item page-item-703 current_page_item"><a href="http://windowsservertutorials.x10.mx/test/wordpress/?page_id=703">Blog</a></li><li class="page_item page-item-2"><a href="http://windowsservertutorials.x10.mx/test/wordpress/?page_id=2">Sample Page</a></li></ul></div><div class="side-bg"></div>

As you can see i have lost the styling and i get a vertical list in wordpress when i don't define a menu. What would the fix be as you can see i need a class always on the ul called nav and not on the div. 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131004/3e98976c/attachment.html>


More information about the theme-reviewers mailing list