Docs

Nav Menu

A WordPress menu with dropdowns, mega menus and a mobile menu.

On this page

The Nav Menu widget shows one of your WordPress menus, usually as the main navigation in your header. It handles dropdown submenus and mega menus, marks the current page, and turns into a hamburger button with a mobile menu on smaller screens.

The Northwind Studio header: the logo on the left, the menu Home, Services with a dropdown arrow, About, Journal and Contact in the middle, with Home underlined, and a Book a consultation button on the right
The Nav Menu in the site header. The current page is underlined.

Where the menu comes from

The links come from a menu you manage in WordPress, in Appearance → Menus: add pages, posts, categories or custom links there, drag them into order, and nest them to create dropdowns. Choose which menu the widget shows in Menu. When you change the menu in WordPress, every Nav Menu that shows it updates.

To show a full panel of content instead of a simple dropdown, attach a mega menu template to a menu item. See Mega menus.

Add a Nav Menu

Open your header template in the Theme Builder. Then open Insert in the left panel, find Nav Menu in the Site & theme group (or type "menu" in the search box) and drag it into the header. See Add elements.

The Nav Menu settings with the Menu section open: Menu set to Main menu, Layout, Alignment, Levels, Open submenus on, Highlight section links, Submenu indicator, Pointer and Pointer animation
The Menu section of the Content tab.

Set up the mobile menu

On tablets and phones, the menu turns into a hamburger button by default. Choose when with Show hamburger on, and pick how the menu opens with Mobile menu: a Dropdown under the header, an Off-canvas drawer from the side, or Full screen.

The header on a phone with the menu open as a full-width dropdown listing Home, Services with an arrow, About, Journal and Contact, and a close button top right
The mobile menu in the Dropdown mode on a phone.

Check it in the Tablet and Mobile views of the editor. See Responsive editing.

Build a one-page menu

If your menu links to sections of the same page (such as #services or #contact), keep Highlight #section links while scrolling on. The link of the section in view is marked as active while the visitor scrolls. Give each section a matching Anchor ID in Behaviour → Anchor & classes.

Content tab settings

Content tab · Menu
SettingWhat it does
MenuWhich WordPress menu to show. Empty: the first menu with items. Manage menus in Appearance → Menus.
LayoutHorizontal or Vertical. Default: Horizontal.
AlignmentStart, Center, End or Stretch. Can differ per device.
LevelsHow many levels of submenus to show (0–6). 0 shows every level.
Open submenus onHover and click or Click only. Default: Hover and click.
Highlight #section links while scrollingOne-page menus: links to sections of the current page are marked active as each section scrolls into view. On by default.
Submenu indicatorThe icon next to items with a submenu. Default: a chevron.
PointerHow the hovered and current items are marked: Underline, Overline, Double line, Background or None (color only). Default: Underline.
Pointer animationGrow, Slide, Fade or None. Default: Grow. Not shown for None (color only).
Content tab · Mobile menu
SettingWhat it does
Show hamburger onTablet and mobile, Mobile only, All devices or Never. Default: Tablet and mobile.
Mobile menuDropdown, Off-canvas drawer or Full screen. Default: Dropdown.
Drawer sideLeft or Right. Default: Right. Shown for Off-canvas drawer.
Full-width dropdownStretches the dropdown to the width of the screen. On by default. Shown for Dropdown.
Toggle iconThe hamburger icon. Default: menu.
Close iconThe icon while the menu is open. Default: x.
Toggle labelThe button's name. Default: Menu.
Show labelShows the label next to the icon. When off, the label is only read by screen readers.
Toggle alignmentStart, Center or End. Can differ per device.

Design tab settings

Design tab
SectionSettings
Main menuTypography. Text color and Background on the Normal, Hover and Active tabs (active is the current page and its parent items), with Pointer color on hover and active. Pointer thickness, Item padding, Space between items, Item radius, Indicator size, Indicator spacing.
DropdownTypography. Text color and Background or Item background on the Normal, Hover and Active tabs. Min width, Distance (space between the menu and its dropdowns), Inner padding, Item padding, Item radius, Divider color, Border radius, Border, Shadow.
Hamburger toggleIcon size, Label typography (when the label is shown), Color and Background (with Normal and Hover tabs), Padding, Border radius, Border.
Mobile menuTypography, Background, Text color (Normal, Hover and Active tabs, with Item background on hover), Item padding, Divider color, Alignment, Distance from toggle (dropdown), Drawer width and Overlay color (drawer), Panel padding, Shadow, Close button color and Close button size (drawer and full screen).

The Design tab also has the sections every element shares: Spacing & position, Background & border and Mask. See Spacing, size & position.

Behaviour tab

The Behaviour tab has the settings every element shares: anchor and classes, entrance animations, motion effects, visibility per device, display conditions and interactions. See Visibility.

Tips

  • The menu works with the keyboard: Tab moves between the links and the submenu arrow buttons, which open with Enter or Space.
  • To make the header stay at the top while visitors scroll, set it in the header template's settings. See Headers & footers.
  • For a second, smaller menu (such as legal links in the footer), create another menu in Appearance → Menus and add a second Nav Menu.