How to Create Dropdown Menus with WordPress Pages
No matter what CMS we're teaching, when we come to talking about themes and designs, one question always comes up quickly: "How do I make a dropdown menu"?
This tutorial provides one answer to that question in WordPress.
Option 1: Creating Dropdown Menus With Pages
We'll start by creating a menu in the 2011 theme. When you first install WordPress it has a page called "Sample page". When you view the site, you'll see that it is one of the two menu links: Home and Sample Page. We're going to add a third menu item.
- Go to your admin dashboard.
- Click Page > Add New.
- Add a title and some content.
- Take a close look at the Page Attributes section.
- Under Parent, set it to (no parent).
- Publish your page.
- Check your work on the site.
Now let's add a dropdown link. The process is identical except this time when we choose the parent, choose Sample Page.
I'll create some additonal pages and show you the result.
Mousing over the Sample Page shows the three pages I added on the second level of the menu. To create more levels, you repeat the process, choosing the proper parent each time.
I created three levels of pages. Each time you create a new page, just be sure you have it on the proper level by choosing the proper parent.
Here is what the fully expanded, three level menu looks like: