Edit the site menu
This guide covers changing the site's header and footer navigation: adding an item that links a page or a URL, nesting it under a parent, reordering, and saving the menu live.
Before you start: a manager or admin account (menus.manage); a section editor can edit their own section's menu. The page you link should exist; an item that links a page stays hidden while that page is not published.
Steps
- Structure → Menus. Every site has Main navigation (the header, two levels) and Footer (a flat list); other menus are made by key for blocks, modules and sections. Choose Edit on the menu.
- Add an item. Add item adds a row at the end with the cursor in its Label. Set its link to Page and search for the page by title (picking one fills an empty label, and the item then follows the page's address when its slug changes), or to URL for a path, an
https://address,mailto:ortel:. Tick New tab only for links that leave the site. - Arrange it. Drag an item by its handle: up or down to reorder, right to nest it under the item above, left to move it out. With the keyboard, focus the handle and use the arrow keys. The More menu on each row has the same moves, Add sub-item and Delete.
- Save. The bar at the bottom says whether there are unsaved changes and holds Save and Discard changes. Save publishes the menu at once and clears the cached pages that show it.
Check the result
- View site: the header (or footer) shows the new item, and a parent opens a drop-down with its sub-items.
- On the linked page, the item is marked as the current page (
aria-current="page").
Notes
- On a multilingual site, each item has a label per language.
- Inside a release, menu changes go into the release and reach the live site with its merge.
- To show a menu inside a page (a section's own navigation), add a Menu block in the page builder, or place it beside every page in a section under Structure → Placements.
Going further
- Add a redirect, the next step.
- Menus and Placements in the manual; Add a department section for a section's own menu.
Spillway 0.1.24