(1)
Open header.php in Appearance > Editor and change the <li> that says Subscribe to this:
PHP Code:
<li class="rss"><a>Subscribe</a>
<ul>
<li><a href="<?php bloginfo('rss2_url'); ?>">RSS</a></li>
<li class="email"><a href="EMAILLINK">Email</a></li>
</ul>
</li>
(Change EMAILLINK to the email subscription link.)
(2)
Still in header.php, find <?php wp_head(); ?> and before that line add this:
PHP Code:
<?php wp_enqueue_script('jquery'); ?>
Now after <?php wp_header(); ?> add this:
PHP Code:
<script type='text/javascript'>
jQuery(document).ready(function() {
jQuery("#nav ul").css({display: "none"}); // Opera Fix
jQuery("#nav li>ul").css({top: "auto", left: "auto"});
jQuery("#nav li ul li>ul").css({margin: "0", top: "0", left: "200px"});
jQuery("#nav li li").hover(function() {
jQuery(this).css({backgroundColor: "#eee"});
},function() {
jQuery(this).css({backgroundColor: "#fff"});
});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible", display: "none"}).show(268);
},function(){
jQuery(this).find('ul:first').css({visibility: "hidden"});
});
});
</script>
(3)
Open style.css and add these to the very end of the file:
EDIT (09/18/09): Added position: relative; z-index: 1; to ul#nav for IE6 fix.
EDIT (07/22/09): I moved the z-index: 1000; declaration to ul#nav li ul instead of in [B]ul#nav li.
Code:
/* suckerfish dropdown */
ul#nav { /* all lists */
margin: 0;
display: block;
position: relative; z-index: 1; /* fixes problem in IE6 */
}
ul#nav li { /* all list items */
float: left;
position: relative;
width: auto;
font-size: 100%;
line-height: 120%;
list-style: none;
}
ul#nav li ul { /* second-level lists */
display: none;
position: absolute;
z-index: 1000;
top: 1em;
left: 0;
text-align: left;
background-color: #fff;
clear: both;
margin-top: 8px;
}
ul#nav li ul li {
text-transform: none;
background: url('images/hr_dot_black.gif') bottom repeat-x;
margin: 0; padding: 10px;
background-color: #fff;
clear: both;
width: 180px;
}
ul#nav li.rss ul li { width: 90px; }
ul#nav li.rss ul li a { display: block; background-position-x: 98%; }
***
(4) EDIT: Also change this in your style.css file.
Code:
ul#nav { list-style: none; width: 950px; padding: 0 10px; background: url('images/hr_dot_black.gif') repeat-x; border-bottom: 3px solid #000; float: left; clear: both; font-size: 1.4em; }
ul#nav li { padding: 0.85em 40px 0.7em 0; font: bold 100% Helvetica, Arial, sans-serif; text-transform: uppercase; float: left; }
Basically, add font-size: 1.4em; to ul#nav and the font attribute should read font: bold 100% Helvetica, Arial, sans-serif; , with 1.4em removed.
Let me know if that works for you.

Originally Posted by
OneWorkingMusician
Is there a way to have a dropdown menu in the nav bar?
Specifically, I'd like to have a Subscribe dropdown and have two choices: RSS and Email.
Any help is greatly appreciated!
Jason
http://oneworkingmusician.com
Bookmarks