[theme-reviewers] Menu Issues
Towfiq I.
tislam100 at gmail.com
Fri Oct 4 08:22:11 UTC 2013
you should style like this:
div.nav ul, ul.nav{margin:0;}
On Fri, Oct 4, 2013 at 2:16 PM, Phillip Wells <phillipwells at hotmail.co.nz>wrote:
> 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.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
--
Towfiq I.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131004/7701c279/attachment.html>
More information about the theme-reviewers
mailing list