WordPress glossaryThe primary menu is the main navigation menu of a WordPress theme, usually shown in the header.
The primary menu is a site's main navigation: the row of links, usually across the header, that leads to the pages most visitors are looking for, such as services, products, pricing, the blog, and contact. On a phone it typically collapses behind a menu icon. Other menus, such as a footer menu or a small utility menu with a login link, play supporting roles.
In WordPress, "Primary" is also the name many classic themes give to their main menu location. The name varies by theme: you may see Primary, Main Menu, Header Menu, or Top Menu, but the idea is the same.
Setting it up
Classic themes. Build the menu under Appearance, then Menus: add pages, posts, categories, or custom links, drag them into order, and drag an item slightly to the right to put it in a dropdown. Then, under Menu Settings or the Manage Locations tab, tick the theme's primary location and save. The Customizer offers the same controls with a live preview.
Block themes. There are no menu locations. The primary menu is the Navigation block in the header template part. Open Appearance, then Editor, select the header, and edit the Navigation block's links there. Its settings control when the mobile overlay menu appears and how dropdowns open.
Our navigation menu entry covers menus in more depth, including how themes register locations and display menus.
What to put in it
- The pages people come for. Look at analytics and search queries to see what visitors actually want, then make those one click away.
- Short, plain labels. "Services" and "Pricing" beat clever wording.
- A clear order. The most important items usually go first, and the contact link last, where people expect it.
- Dropdowns only where they help. Group related pages under one parent, and make sure the parent link itself goes somewhere useful.
- A visible call to action, if the site has one, such as a "Book a call" button styled differently from the other links.
For large catalogs, a mega menu can show several columns of links in one dropdown, but it still needs a clear structure.
SEO and accessibility
The primary menu appears on every page, so its links are among the strongest internal links on the site. Search engines follow them and treat the pages they point to as important. Descriptive anchor text helps both crawlers and people, and menu items should be real HTML links that work without JavaScript.
For accessibility, the menu should be usable with a keyboard alone: Tab should reach every item, dropdowns should open without a mouse, and focus should be visible. On touch screens, dropdowns that open only on hover are a common failure. Test with a keyboard and on a phone after any change.
FAQs
Can I have more than one menu on my site?
Yes. Classic themes offer several menu locations, such as the header, footer, and sidebar, and you can create a separate menu for each. In a block theme, you can add a Navigation block to any template part and give each its own menu.
How many menu items are too many?
There is no fixed number, but a short top level is easier to scan, and many sites settle on somewhere around five to seven items. If the list keeps growing, group related pages into dropdowns or link to a hub page instead.
Why is my primary menu not showing?
In a classic theme, the menu is usually not assigned to the primary location: check Appearance, then Menus, then Manage Locations, and save. If the theme shows a list of every page instead, it is using its fallback because no menu is assigned. In a block theme, check the Navigation block in the header template. Clear any caches afterward.
How do I create a mobile-friendly menu?
Most modern themes collapse the menu into a toggle on small screens automatically. In a block theme, set the Navigation block's overlay menu option to show on mobile. Then test it on a real phone: the toggle should be easy to tap, dropdowns should open by tap, and long menus should scroll.