What Is a Primary Menu in WordPress?

A primary menu is a website’s main navigation menu, usually shown in the header on every page. In WordPress, “primary” typically names a menu location the theme registers: classic themes let you assign any saved menu to that slot from the Menus screen, while block themes fill the same role with a Navigation block in the header.


WordPress

More About the Primary Menu

WordPress lets you build multiple menus and, depending on your theme, show them in different locations: the header, a sidebar, or the footer. The primary menu is the main navigation menu, the one visitors rely on to move between your most important pages. It usually sits in the header, so it follows visitors from page to page.

The primary menu location in WordPress

In WordPress, “primary” usually names a menu location, a slot the theme carves out for a menu. Classic themes register these locations in code: the register_nav_menus() function takes a list of location IDs and human-readable labels, and “Primary Menu” is the label that appears in the code examples on that developer reference. Your primary menu is simply whichever saved menu you assign to that slot, and the label is the theme author’s choice.

Block themes handle this differently. Instead of assigning a menu to a location, you generally edit a Navigation block that sits in the header template part, using the Full-Site Editor rather than a Menus screen. Whether a theme offers menu locations at all is the theme author’s decision, so check your theme’s documentation before assuming either setup.

How to set or change the primary menu

On a classic or hybrid theme, go to Appearance → Menus, pick a saved menu or create one, and check the box for the primary location under Menu Settings → Display location. On a block theme, open Appearance → Editor instead and select the Navigation block in the header, where you can pick any saved menu or build one in place. Which screen you see depends on your theme. WordPress.org’s documentation notes that WordPress 5.9 was the last version to include the Appearance Menus screen for all sites by default; from 6.0 on, the screen may still appear with classic or hybrid themes, or through plugins that enable it.

Keep the contents short. A typical small-business primary menu needs 5 top-level pages: Home, About, Services, Blog, and Contact. Building the menu itself, from adding pages to nesting drop-downs, is our Menu entry’s job.

Why the primary menu disappears after a theme switch

WordPress stores menu assignments per theme, keyed to each location’s ID. A new theme’s locations therefore start empty, and they may use different names, so after a switch the header menu vanishes or, depending on the theme, falls back to a plain list of pages. Your saved menu isn’t deleted. On a classic theme, reassign it under Menu Settings → Display location; on a block theme, open the header in the Site Editor and point the Navigation block at the saved menu. Make checking the header the first thing you do after any theme switch.

What links belong in the primary menu

Fewer than you might think. Reserve the slots for the pages every visitor needs: what you offer, what it costs, and how to reach you. Nielsen Norman Group’s menu-design checklist (updated June 2024) sends lower-priority categories, such as investor information and job listings, to the footer menu instead. A visitor who can’t find a page in the menu rarely hunts for it; they leave.

The header around the primary menu often carries a search bar, social media icons, and a login button, too. Strictly speaking, those are utility navigation, a separate layer that sits beside the primary menu rather than inside it. For labels, ordering, and mobile behavior, our guide to navigation menu design walks through 16 practical tips.

Frequently Asked Questions

What’s the difference between a primary menu and a navigation menu?

Any menu visitors use to get around is a navigation menu; the primary menu is the main one. The difference is the location, not the menu itself: on classic themes, Display location is a set of checkboxes, so one saved menu can fill the primary and footer slots.

Why doesn’t my theme have a “Primary Menu” option?

Themes decide whether and how to expose menu locations, and names vary; the main slot may be called “Main” or “Header.” Check for Appearance → Menus, which lists locations under Menu Settings, and Appearance → Editor, where navigation is a block. If neither appears, consult your theme’s documentation.

Do I need a plugin to manage the primary menu in WordPress?

No. Menu tools are built into WordPress: classic themes use the Appearance → Menus screen, and block themes use the Navigation block in the Site Editor. Consider a plugin only when you need menu features those built-in tools don’t provide.

Special Offer
Powerful WordPress Hosting
Reliable, lightning-fast hosting solutions specifically optimized for WordPress. Find the perfect plan for you by clicking below.