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).
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.
Nodes can be added to the main navigation by clicking the 'Add link' button. When adding a new link, editors will need to define:
- 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
- Link - the node you wish to link to (the node will need to exist before you can add it to the menu)
- Enabled - a checkbox defining whether the link will appear in the menu
- 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.
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.
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.
Looking for help?
You can ask for advice or request an update to the editor manual on the Drupal Rapid Start Viva Engage Group.