CaldwellYSR
Member
So I have a custom wordpress login form that hides itself and then slides in when you click the login button using jquery. It all works nicely when it's just static content, but I'm running into a problem when I add wp menus in. Basically when it's static my menu looks like:
Then in my CSS I float the #login to the right and keep it on the far right of the navigation menu. (It's a horizontal nav menu). Anyways this all works perfectly. When I try to use wordpress menus, I don't know where to add the login one because now my navigation menu looks like...
HTML:
<nav id="main-nav">
<ul>
<li><a href="">Home</a></li>
...
...
...
<li id="login"><a href="" onClick="return false">Login</a></li>
</ul>
</nav>
Then in my CSS I float the #login to the right and keep it on the far right of the navigation menu. (It's a horizontal nav menu). Anyways this all works perfectly. When I try to use wordpress menus, I don't know where to add the login one because now my navigation menu looks like...
PHP:
<nav id="main-nav">
<?php wp_nav_menu(array('menu' => 'Main Nav Menu')); ?>
</nav>