- Article
- Beginner
- 3 minutes read
- Reviewed August 3, 2026
Navigation helps visitors understand the structure of a website and move toward important content or actions.
WordPress supports different navigation workflows depending on the active theme. Classic themes generally use menu objects assigned to registered locations. Block themes place Navigation blocks inside templates and template parts.
Navigation in Classic Themes
A classic theme can register locations such as Primary, Footer or Social.
Administrators create a menu containing links and assign it to a location. The theme then renders that menu in the corresponding template region.
A menu can include:
- Pages and posts.
- Category or taxonomy archives.
- Custom post type archives.
- Individual custom content items.
- Custom URLs.
- Nested submenu items.
The available locations belong to the theme, so switching themes may require reassignment.
Navigation in Block Themes
Block themes use the Navigation block.
The block controls both menu structure and presentation, and it is normally placed in a header or other template part. Creating a navigation entity does not automatically display it; a template must include a Navigation block connected to that menu.
The Site Editor can manage navigation alongside templates, patterns and styles.
Navigation Data and Presentation
Treat the link structure separately from its visual presentation.
The same menu may appear as a horizontal desktop bar, a mobile overlay or a footer list. Theme and block settings control layout, spacing, submenu behavior and responsive presentation.
Avoid encoding important meaning only through visual position. Link labels and hierarchy should remain understandable across devices and assistive technologies.
Information Architecture Before Menus
A navigation menu cannot fix an unclear content structure.
Before building it, identify:
- Primary visitor tasks.
- Main content groups.
- Utility links.
- Account or transactional destinations.
- Legal and support pages.
- Contextual navigation needs.
Limit top-level choices to meaningful groups. Deep or crowded menus increase cognitive load and become difficult to use on smaller screens.
Accessible Navigation
A navigation system should support:
- Keyboard operation.
- Visible focus indicators.
- Clear link labels.
- Predictable submenu controls.
- Appropriate landmarks.
- Current-page indication.
- Sufficient target size.
- Responsive layouts without hidden keyboard traps.
Test expanded and collapsed states with a keyboard and screen reader. Visual hover behavior alone is not enough.
Dynamic and Contextual Navigation
Not every link belongs in the global menu.
WordPress templates can provide:
- Breadcrumbs.
- Previous and next links.
- Section sidebars.
- Related content.
- Taxonomy filters.
- Account navigation.
- Pagination.
Use the global navigation for stable high-level destinations and contextual components for local movement.
Theme Switching Considerations
When changing themes:
- Check classic menu-location assignments.
- Inspect header and footer template parts.
- Confirm the intended Navigation block is selected.
- Test mobile menu behavior.
- Review custom CSS and icons.
- Verify that private or draft links are not exposed.
Frequently Asked Questions
Why did my menu disappear after changing themes?
The new theme may use different classic menu locations or a different Navigation block inside its header template.
Can I create more than one menu?
Yes. You can maintain different menus for primary, footer, account or contextual uses.
Should every page be in the main navigation?
No. The main navigation should support key journeys, while search, contextual links and indexes can expose deeper content.
Continue Learning
Previous: Global Styles and theme.json