The Menu element (menu) is the lighter of Jalpi's two menu elements. It turns a menu from Appearance → Menus into a styled navigation bar. It does not have mega panels, animation controls or arrow-key navigation: for those, use the Advanced Menu.
| Menu | Advanced Menu | |
|---|---|---|
| Source | WordPress navigation menu | WordPress navigation menu |
| Dropdown submenus | Yes | Yes |
| Mega panels with builder content | No | Yes |
| Hover / click trigger | Yes | Yes, with open and close delays |
| Animations | No | Six, with duration control |
| Mobile layouts | One: left-hand drawer | Accordion, Off Canvas, Dropdown |
| Arrow-key navigation | No (Esc only) | Yes |
| Falls back to a theme menu location | Yes | No |
Adding a Menu#
- Create or edit a menu under Appearance → Menus.
- In the editor, add Menu from the Navigation group of the Elements panel.
- In the Content tab, choose your menu in Navigation Menu.
If you leave the select on "Select a menu…", the element looks for a menu on its own, trying the theme locations primary, main, menu-1, header and top in that order, then any other assigned location. If none resolves it renders nothing.
Content tab reference#
| Control | Options | Default |
|---|---|---|
| Navigation Menu | Any menu on your site | Select a menu… |
| Menu Layout | Horizontal, Vertical | Horizontal |
| Dropdown Menu | Arrow, Caret, Plus / Minus, No Indicator | Arrow |
| Show Submenus | On / off. Off hides every nested level. | On |
| Dropdown Trigger | Hover, Click | Hover |
| Responsive Menu | Collapse to Toggle, Always Show Full Menu | Collapse to Toggle |
| Mobile Breakpoint | 320 – 1440 px | 768 |
| Menu Alignment | Left, Center, Right, Space Between | Left |
| Menu Width | Slider, 0 – 1600 | Auto |
| Item Spacing | Slider, 0 – 80 | Theme default |
| ARIA Label | Text | Main navigation |
Style tab reference#
| Group | Controls |
|---|---|
| Typography | Font size, weight (Light 300 to Bold 700), text transform, letter spacing |
| Colors | Text colour and background for Normal, Hover and Active states |
| Border & Shadow | Border style, width and colour; border radius; shadow colour, offsets and blur |
| Spacing | Padding, margin and item gap (the item gap, if set, overrides Item Spacing from the Content tab) |
| Dropdown | Background, text colour, minimum width, corner radius, item padding |
Behaviour#
- Active state. The current page and every ancestor on its branch are marked active and styled with the Active colours. The current page and its ancestors all receive
aria-current="page". - Click trigger. Clicking a parent link toggles its submenu instead of following it, except in the collapsed mobile layout where the link is followed and the small arrow button expands the submenu.
- Edge protection. A submenu that would overflow the right edge of the screen flips to open inward.
- Mobile. Below the breakpoint, a hamburger button opens a drawer sliding in from the left, up to 320 px or 85% of the screen wide, with submenus stacked inside it. It closes with the hamburger, the Esc key, a tap outside, or by following a link. Choose Always Show Full Menu to disable collapsing entirely.
- Keyboard. Tab moves through links and the expand buttons, and Esc closes the open submenu and returns focus to its link. There is no arrow-key, Home or End navigation in this element; use the Advanced Menu if you need it.
Things to know
- The drawer opens from the left only, even on right-to-left sites.
- The menu has no close button or dimmed backdrop. Visitors close it with the hamburger, Esc, or a tap outside.
- Right-to-left pages are not specially handled by this element.
Configuration recipes#
A right-aligned header menu#
- Select your menu. Set Menu Layout to Horizontal and Menu Alignment to Right.
- Keep Dropdown Trigger on Hover.
- In Colors, set Normal, Hover and Active text colours.
Click-to-open dropdowns#
- Set Dropdown Trigger to Click and Dropdown Menu to Caret.
- Parent items now open their submenu on click instead of navigating.
A collapsing mobile menu#
- Leave Responsive Menu on Collapse to Toggle.
- Set Mobile Breakpoint to 1024 if you want tablets to get the hamburger too.
- Check the result in the Tablet and Mobile device views.
Source
Files
includes/elements/class-jalpi-element-menu.php assets/js/jalpi-frontend.js assets/css/frontend.css
Related#
Last updated: November 2026