Sub topic 9
Turn the sitemap into navigation
This chapter assumes you have a finished sitemap with a shallow hierarchy, a name and URL slug for each page, and a goal for each page. If you don't, finish those steps first. Navigation is derived from the sitemap, not designed separately from it. Here you will turn the sitemap into the menus and links a visitor uses to move around, and then check that they work.
What navigation is and why it comes from the sitemap
The sitemap shows how pages are related. Navigation is the set of links that lets a visitor use those relationships. If you design the menu first, it tends to drift away from the structure, and visitors end up with labels that don't match the page titles or pages that can only be reached through a search box.
Start from the sitemap used throughout this tutorial:
Home (/)
├── Services (/services/)
│ ├── Web design (/services/web-design/)
│ └── Maintenance (/services/maintenance/)
├── Portfolio (/portfolio/)
├── About (/about/)
└── Contact (/contact/)The sitemap already answers three questions that navigation needs:
- Which pages sit at the top level? These are candidates for the primary navigation.
- Which pages have children? These need a way to reach the children, such as a section page or a dropdown.
- Which pages exist for one purpose, such as contact? These may deserve special treatment.
The types of navigation
A small site uses a handful of navigation types. Each has a different job, so don't expect one menu to do everything.
| Type | Where it appears | Job | Built from |
|---|---|---|---|
| Primary navigation | Header, on every page | Reach each top-level section | Level 1 of the sitemap |
| Local navigation | Inside a section | Move between sibling pages or children | Children of one section |
| Breadcrumbs | Above the page title | Show where the page sits and allow a step back up | The path from Home to the page |
| Footer navigation | Bottom of every page | Repeat key links and add low-priority ones | Top-level pages plus utility pages |
| Contextual links | Inside page content | Send readers to the next relevant page | The `links_to` field of a page brief |
Primary navigation and contextual links do most of the work on a small site. Breadcrumbs matter less when the hierarchy is two levels deep, but they cost little and help visitors who land on a deep page from a search engine.
Build the primary navigation
Follow these steps in order.
- List the level 1 pages from the sitemap. In the example these are Services, Portfolio, About, and Contact.
- Decide whether Home needs its own menu item. Most sites link the logo to Home instead, so a "Home" label is optional. If you include it, put it first.
- Order the items by the importance of the user tasks they support, not by the order they appear in your files. A prospective client comparing providers looks for services first, proof second, and the person behind the business third.
- Use the page names from the sitemap as labels, unchanged. If the page is called "Services", the menu says "Services". A different menu label makes visitors wonder whether the link goes where they expect.
- Count the items. For a small site, aim for roughly five to seven. More than that usually means the sitemap's top level is too wide, and the fix belongs in the sitemap, not in smaller type.
For the example site, the result is:
| Position | Label | URL |
|---|---|---|
| Logo | (links to Home) | `/` |
| 1 | Services | `/services/` |
| 2 | Portfolio | `/portfolio/` |
| 3 | About | `/about/` |
| 4 | Contact | `/contact/` |
Handle the page that is also the call to action
Contact is both a page and the destination of the main call to action on most pages. Many sites style it as a button in the header, set apart from the other items. This is a design choice, but the plan can record it. The link still comes from the sitemap, and the button style is a note for the designer.
If a page's primary call to action is "Request a quote" and it points to /contact/, the header button and the in-page button should lead to the same place. Two different destinations for the same action split your measurements and confuse visitors.
Deal with sections that have children
Services has two children. You have three ways to reach them, and each has trade-offs.
| Approach | How it works | Strengths | Risks |
|---|---|---|---|
| Section page only | The Services menu item opens `/services/`, which lists and links to each service | Simple, works on touch screens and with a keyboard, easy to build | One extra click to reach a child |
| Dropdown menu | Hovering or activating Services reveals the child links | Fewer clicks for returning visitors | Hover-only menus fail on touch devices, and dropdowns are easy to build badly for keyboard users |
| Local navigation | The section page and its children share a side or sub-menu | Visitors can compare siblings without going back | Needs space and consistent templates |
For a site this size, the section page plus local navigation is usually the safest choice. The /services/ page already has a goal: help visitors understand what you offer and choose. A page that does that work needs to link to its children anyway, so the dropdown adds little.
If you do use a dropdown, the parent item must still be a real link to its own page. A parent that only opens a menu hides a page from anyone who can't use the menu.
Add breadcrumbs, footer links, and contextual links
Breadcrumbs
A breadcrumb trail shows the path from Home to the current page. It is generated from the sitemap hierarchy, so the labels and links match the page names automatically. On /services/web-design/ it reads:
Home › Services › Web design
The last item is the current page and is usually not a link. Pages at level 1 can omit breadcrumbs, because the trail would only show Home and the page itself.
Footer navigation
The footer repeats the top-level pages and holds links that don't belong in the header: a privacy policy, terms, an accessibility statement, and contact details. These are utility pages. They don't appear in the main sitemap diagram when they would clutter it, but they must still exist in the plan with a URL. Add them to the page list so nobody forgets to build them.
Contextual links
Contextual links come from the links_to field in each page brief. Here is a brief for the Services page:
page: Services
url: /services/
audience: Prospective clients comparing providers
goal: Help visitors understand what we offer and decide whether we fit their needs
primary_cta: Request a quote
key_content:
- Short description of each service
- Who each service is for
- Link to related portfolio items
links_to:
- /services/web-design/
- /services/maintenance/
- /contact/The three entries in links_to become links in the body of the page. They support the page goal directly: the two service pages let visitors go deeper, and the contact link carries the primary call to action. Links in content tend to be better at moving visitors forward than menu items, because they appear at the moment the visitor is ready for the next step.
Write the navigation down as data
Before the designer starts, record the navigation in a form that is easy to check against the sitemap. A short structured file does this well.
primary:
- label: Services
url: /services/
- label: Portfolio
url: /portfolio/
- label: About
url: /about/
- label: Contact
url: /contact/
style: button
local:
/services/:
- label: Web design
url: /services/web-design/
- label: Maintenance
url: /services/maintenance/
footer:
- label: Privacy policy
url: /privacy/A developer can turn this into markup. The result is a navigation landmark with a list of links, and the current page is marked so that assistive technology can announce it:
<nav aria-label="Primary">
<ul>
<li><a href="/services/" aria-current="page">Services</a></li>
<li><a href="/portfolio/">Portfolio</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>Two details matter here. The <nav> element with an aria-label lets screen reader users jump to the menu and tell it apart from other navigation regions, such as the footer. The aria-current="page" attribute marks the link to the page the visitor is on. Visual styling for the current page should be driven by the same marker.
Common errors
- Labels that differ from page names. The menu says "What we do" and the page title says "Services". Pick one name and use it everywhere.
- Orphan pages. A page appears in the sitemap but no menu, section page, or content links to it. Every page needs at least one inbound link from within the site.
- Mirroring the org chart. Menu items named after internal teams or product codes mean something to staff and nothing to visitors. Use the words your audience uses.
- A menu that changes between pages. The primary navigation should be the same on every page. Changing it forces visitors to relearn the site on each click.
- Too many top-level items. Eleven items in the header signals a flat sitemap that needs grouping. Go back to the hierarchy step instead of shrinking the font.
- Vague labels. "Resources" and "Solutions" hide what's behind them. A label should predict the page.
- Dropdown parents that aren't links. The section page becomes unreachable on some devices.
- Burying the primary action. If the main call to action is only available three levels down, the navigation is working against the page goal.
Check the navigation against the sitemap
Run these checks on the navigation data before moving on. They are quick, and they catch most structural mistakes.
- Every URL in the navigation exists in the sitemap.
- Every page in the sitemap is reachable from at least one navigation type or content link.
- Every label matches the page name in the sitemap.
- The primary navigation has the same items in the same order on every page template.
- Every page can reach the page that holds its primary call to action in no more than two clicks.
Later in the plan you will test the whole structure against real user tasks. These checks are the cheaper structural pass that comes first.
Exercise
A small bakery site has this sitemap: Home, Menu, Catering (with children Weddings and Corporate events), About, Contact. Write the primary navigation, say how visitors reach Weddings, and give the breadcrumb trail for the Weddings page.
Show answer
Primary navigation: Menu, Catering, About, Contact, with the logo linking to Home. That is four items, in line with the guideline of about five to seven. Visitors reach Weddings through the Catering item, which links to the Catering section page, and that page links to Weddings and Corporate events. Local navigation on the Catering pages can also list both children. If you use a dropdown instead, Catering must still link to its own page. The breadcrumb trail for the Weddings page is Home › Catering › Weddings, with Weddings as the current page and not a link.
Exercise
Your menu has the label "Our Work" but the sitemap page is named "Portfolio". Name two problems this can cause and give the fix.
Show answer
Visitors may not realize that "Our Work" and a page titled "Portfolio" are the same thing, and the plan, the breadcrumbs, and the page title now disagree, so designers and developers may build different names in different places. The fix is to choose one name, update the sitemap or the menu so they match, and use that name in the label, the page title, and the breadcrumb.