Frequently Asked Questions:
Create a drop-down list of your pages in your nav bar
A few people have asked me how to create a drop-down menu of your pages in your top navigation bar area. Here’s how:
In your WP Admin area, go to “Design” => “Theme Editor” => “topnav.php”. On a blank line in the middle (depending on where you want it to go) paste in this line of code on an empty line:
<?php wp_list_pages('orderby=name&title_li=<a href="#">Pages</a>'); ?>
Then, save your changes and, assuming you have some pages written, you should have a perfectly functioning drop-down list of your pages.
NOTE: Because you’re adding another feature to the nav area, you may run out of room and get your header bumped down covering up your bio. If this happens, maybe delete one of your nav items, like the search, or follow the directions here to squeeze it in so it fits.
Related resources:
Why is my header is covering up my bio?
How do I delete the search feature, or something else from the nav area?
Questions? Instead of emailing for support, leave a comment below so everyone can benefit from any clarification.
Jared, I’ve added my pages to my dropdown. I’d like to remove the Blogroll from the topnav, which you’ve explained how to do, but I’d like to swap it out for my tags instead. I don’t understand the code enough to be able to just swap it out. Is there a way to add a menu to pick the tags?
@robin: I’m not aware of how to do this, although I’m guessing it might be possible. i would try searching the wordpress codex for template tags related to “tags”.