How to Create a Dropdown Menu in WordPress (Block & Classic)
In this article
Dropdown menus (also called submenus or fly-out menus) let you organize many pages or posts under a single parent item, keeping your navigation clean and your site easy to browse. This guide covers both modern block themes (using the Site Editor) and classic themes (using the Customizer or Menus screen). You’ll learn how to build a dropdown menu in each environment, plus how to style it and fix common issues.
What You'll Need
- A WordPress site with admin access (you’ll need to edit menus, so an Administrator role is best).
- For block themes: a theme that supports the Site Editor (e.g., Twenty Twenty-Four or any block-based theme).
- For classic themes: a theme that uses the traditional Customizer menus (most older themes do).
- Pages, posts, or custom links that you want to appear in the dropdown.
Step-by-Step
For Block Themes (Site Editor)
- Go to Appearance → Editor in your WordPress admin. This opens the Site Editor.
- Click on the Navigation block (usually in the header template part). If you don’t have one, add a Navigation block from the block inserter (+).
- In the Navigation block toolbar, click the “+” (Add block) to add a new menu item. You can add a Page, a Post, a Custom Link, or a Category.
- To create a dropdown, you need to make one item a “parent” and place other items under it. In the Site Editor, this is done by dragging items. Click and hold the “handle” (six dots) next to a menu item and drag it slightly to the right, under another item. Release to drop it as a subitem.
- Repeat for each subitem you want. The parent item will automatically show an arrow or caret in the front end, indicating it has children.
- To reorder or change the hierarchy, use the same drag-and-drop. You can also click on an item to edit its label, URL, or remove it.
- Once you’re happy, click Save in the top-right corner of the Site Editor.
For Classic Themes (Customizer)
- Go to Appearance → Menus (or Appearance → Customize → Menus if your theme uses the Customizer).
- If you don’t have a menu yet, click Create a new menu, give it a name (e.g., “Main Menu”), and click Create Menu.
- Add items to the menu: on the left side, you’ll see checkboxes for Pages, Posts, Custom Links, and Categories. Check the items you want, then click Add to Menu.
- To create a dropdown, you need to set a parent item. In the menu structure list, you’ll see each item with a “drag” handle. Drag an item slightly to the right, under another item, to make it a subitem. Release when you see an indentation.
- Alternatively, click the “▼” arrow on the item to expand it, and use the “Parent” dropdown to select a parent item.
- Assign the menu to a location: in the Customizer, go to the “Menu Locations” section and select the menu for your primary location (e.g., “Primary Menu” or “Header Menu”). In the Menus screen, go to Manage Locations tab and assign it.
- Click Publish (or Save Menu).
Common Mistakes
- Not assigning the menu to a location. You can create a perfect menu, but if it’s not assigned to a theme location, it won’t show up. Always double-check the location setting.
- Dragging items incorrectly. In both editors, you must drag the item to the right, not just up or down. If you don’t see an indentation, you’re not creating a submenu.
- Using the wrong editor. Block themes use the Site Editor; classic themes use the Customizer. Trying to use the Customizer on a block theme might not show the menu options.
- Forgetting to save. In the Site Editor, changes are not saved until you click the Save button. In the Customizer, you must click Publish.
Tips
- Keep it shallow. Dropdowns with more than two levels (sub-submenus) can be hard to use on mobile. Aim for one level of dropdown, or at most two.
- Use descriptive labels. Instead of “Products,” use “Our Products” or “Shop by Category.” This helps both users and SEO.
- Test on mobile. On touch devices, hover menus don’t work. Most WordPress themes handle this by showing the submenu on tap, but test to be sure.
- Use the “Custom Link” for special items. You can add a link to any URL, like a contact form or an external resource.
- Organize with categories. If you have many posts, consider using category pages as parent items instead of individual posts.
Troubleshooting
My dropdown doesn’t appear on the front end. First, check that the menu is assigned to a location. Then, clear any caching plugins (and your browser cache) to see the updated menu. If it still doesn’t show, your theme might not support dropdowns (some minimal themes hide submenus). Try switching to a default theme like Twenty Twenty-Four to test.
Submenus appear but are not clickable or are hidden behind other elements. This is usually a CSS issue. Your theme might have a z-index problem. You can add custom CSS to fix it, but first check if the theme has a known fix. A simple temporary fix is to add position: relative; z-index: 999; to the navigation container via the Customizer’s Additional CSS.
In the block editor, I can’t drag items to be subitems. Make sure you are dragging the item’s handle (the six dots) and not the text. Also, ensure the parent item is not already a subitem of another. If you’re still stuck, you can use the keyboard: select the item, press and hold the “Alt” (or “Option” on Mac) and press the right arrow key to indent it.
My menu disappears after updating the theme. If you were using a classic theme and updated to a block theme, your old menu is not automatically migrated. You’ll need to recreate it in the Site Editor. Conversely, if you switch from a block theme to a classic theme, your navigation block will not be used; you’ll need to create a new menu in the Customizer.
Frequently Asked Questions
1. Can I add a dropdown menu to a specific page only? Yes, but not directly with the built-in menu system. You can create a menu and assign it to a location that only appears on certain pages using a conditional logic plugin or custom code. For most users, it’s easier to use a single global menu.
2. How do I make a dropdown menu with categories? In both block and classic editors, you can add a “Categories” item to the menu. When you add a category, it will automatically list the posts in that category as subitems (if you have “Display” settings set to show subcategories). To have full control, you can add individual posts as subitems under a custom link to the category page.
3. Why is my dropdown menu not working on mobile? Mobile devices don’t have hover, so the submenu is usually shown on tap. If it’s not working, your theme might not have a mobile menu script. You can use a plugin like “Responsive Menu” to add touch support, or you can use the “Mobile” tab in the Customizer to set a separate mobile menu.
4. Can I create a dropdown menu with a plugin? Yes, many plugins like “Max Mega Menu” or “UberMenu” give you advanced styling and control. However, for basic dropdowns, the built-in WordPress menu system is sufficient and faster.
5. How do I add a dropdown menu to my footer? You can create a second menu and assign it to a footer location if your theme supports it. In the Customizer, look for “Footer Menu” or “Secondary Menu” locations. In the Site Editor, you can add a Navigation block to the footer template part.
6. Can I have multiple dropdown levels? Yes, you can create as many levels as you want by dragging items further right. However, be aware that deep menus are user-unfriendly and can cause performance issues. It’s best to limit to two levels.