The main navigation is the primary way users navigate your website

It's located between the header and the banner section. Not only does it serve as a navigational tool, but it also defines the structure or Information Architecture of the website.

The main navigation can show up to two levels of pages. It is modelled on the design pattern from the NSW Digital Design System (DDS).

Screenshot highlighting the main navigation of a website.

Adding links to the main navigation

Links are added to the main navigation using the Structure > Menus > Main Navigation menu. If no nodes are added to the main navigation through this menu, all pages will sit at the root level and the website will have no structure.  This makes it hard for users to find what they need and negatively impacts SEO. 

Main navigation menu showing 5 pages in a structure.

Nodes can be added to the main navigation by clicking the 'Add link' button. When adding a new link, editors will need to define:

  1. Menu link title - the label of the menu link will show in the main navigation (if the link is a level 1 or level 2 link) and in the Sidebar
  2. Link - the node you wish to link to (the node will need to exist before you can add it to the menu)
  3. Enabled - a checkbox defining whether the link will appear in the menu
  4. Parent link - the parent of the new link being added. If the node being added is a level 1 page, this can be left as '<Main navigation>' which is the default setting.
SEO stands for 'Search Engine Optimisation', which is the process of improving a website's content and links so that search engines can rank it higher in search results. The goal of SEO is to help users find a website and decide whether to visit it.
A node is the name given to a piece of content on Drupal. Nodes can be web pages, documents, images or videos.
Adding new nodes to the menu

New nodes can be added to the Main Navigation menu at the time of creation via the node edit form. More information about this can be found on Creating a basic page. Note that items added using this method will always have the 'Enabled' checkbox checked.

Editing and deleting items in the main navigation

Menu links can be updated via the Structure > Menus > Main Navigation menu. Select 'Edit' from the Operations column for the link you wish to update. Once you've made the required updates, click the Save button to commit your changes. 

To delete a menu link from the main navigation, select 'Delete' from the Operations column drop-down for the link you wish to update. This will not delete the page itself, only remove the link to the page from the main navigation.

Reordering links in the main navigation

Reordering links in the Main Navigation menu, can be done using drag-and-drop functionality.

Screenshot of links in the main navigation with the crossbar handle highlighted.

Click and drag the crossbar handles to move links up or down to reorder. Dragging items sideways will indent and outdent, creating a parent-child relationship between links.