Advanced Menu
A WordPress navigation menu with optional mega panels: build rich, multi-column dropdowns from real Jalpi elements, choose hover or click triggers, six animations and three mobile layouts, with keyboard navigation and RTL support.
The Advanced Menu (adv-menu) lives in the Navigation group of the Elements panel. It reads its links from a menu you create under Appearance → Menus, so editors keep managing menu items the normal WordPress way. What Jalpi adds is the presentation: any top-level item can swap its plain submenu for a mega panel, a container you fill with headings, text, images, buttons or any other element.
If you only need a simple dropdown menu, use the Menu element instead. Advanced Menu is the one to choose when you want mega panels, animation control or an off-canvas mobile drawer.
Adding an Advanced Menu#
- Create your menu under Appearance → Menus and add the links you want, including any nested items.
- In the editor, open the Elements panel (or press Ctrl+K for the command palette) and add Advanced Menu from the Navigation group.
- Under Content → Menu Source, pick your menu in the Navigation Menu select. Until you do, it shows "Select a menu…" and nothing renders on the front end.
- Adjust the Layout group, then style the menu in the Style tab.
Important
- The menu always comes from a WordPress navigation menu. There are no manual link items inside the element.
- If no menu is selected, or the selected menu is empty or has been deleted, the element renders nothing. Unlike the Menu element, Advanced Menu has no fallback to your theme's primary menu.
- If you also use WPML or Polylang, menu translation is handled by their WordPress filters, so the translated menu is used automatically.
Content tab reference#
Menu Source#
| Control | Options | Default |
|---|---|---|
| Navigation Menu | "Select a menu…", then every menu shown as Name (count). If you have none, a hint reads "No menus found. Create one under Appearance → Menus." | None selected |
Layout#
| Control | Options | Default |
|---|---|---|
| Menu Layout | Horizontal, Vertical | Horizontal |
| Menu Alignment | Left, Center, Right, Justify (spreads items across the full width) | Left |
| Submenu Indicator | Arrow, Plus / Minus, None | Arrow |
| Menu Width | Any CSS width, for example 100% | Auto |
| Item Spacing | Any CSS length, for example 8px | Theme default |
The Item Gap field in the Style tab, if set, takes precedence over Item Spacing here.
Mega Panel Appearance#
This group is collapsed by default and controls how every mega panel in this menu opens.
| Control | Options | Default |
|---|---|---|
| Trigger | Hover, Click | Hover |
| Panel Width | Container Width, Full Width, Custom Width | Container Width |
| Custom Width | Shown only for Custom Width. Accepts px, em, rem, %, vw and vh, for example 720px. | 720px |
| Dropdown Position | Left, Center, Right | Left |
- Container Width makes the panel at least as wide as the menu bar itself.
- Full Width stretches the panel to the full viewport width, centred on the page, with square corners.
- Dropdown Position applies to Container and Custom widths only. A panel that would run off the screen is nudged back into view automatically.
Mega Navigation: choosing which items open a panel#
Mega panels are off by default: every item behaves as a normal dropdown. The Mega Navigation group lists each top-level item of the selected menu with its own toggle.
- Turn on the toggle next to the item (for example "Products").
- Choose how many Columns the panel uses, from "1 Column" to "12 Columns". The default is 3.
- Click that menu item on the canvas. The panel opens as an editable container.
- Drag any elements into it: headings, text, images, buttons, icon lists and so on.
When a toggle is off, the row shows "Normal dropdown submenu" if the item has children, or "Plain link (no submenu)" if it does not.
Good to know
- Only top-level items can be mega. Deeper levels stay ordinary nested dropdowns.
- A mega panel is a real Jalpi container, so everything you know about building layouts applies. Its columns are a CSS grid of equal-width tracks.
- Turning a toggle off hides the panel on the front end but keeps its content, so turning it back on restores your work. The empty container can remain in the Layers panel meanwhile.
- If a panel's container is ever missing, the item quietly falls back to a normal dropdown or plain link instead of breaking.
Animation#
Collapsed by default. Animation applies to mega panels.
| Option | Effect |
|---|---|
| Fade (default) | The panel fades in and out. |
| Slide Down | The panel fades in while moving down 12 px. |
| Slide Up | The panel fades in while moving up 12 px. |
| Zoom | The panel scales up slightly from 96%. |
| Scale | The panel grows vertically from the top edge, starting at 90%. |
| None | No transition at all. |
| Control | Editor range | Default | Notes |
|---|---|---|---|
| Duration (ms) | 0 – 1500 | 250 | Saved values are limited to 0–3000. |
| Open Delay (ms) | 0 – 1000 | 100 | Hover trigger only. Saved values are limited to 0–2000. |
| Close Delay (ms) | 0 – 1000 | 200 | Hover trigger only. A short delay stops panels closing as the pointer crosses small gaps. |
Visitors who have Reduce motion switched on in their operating system see no transitions, regardless of these settings.
Mobile#
| Control | Options | Default |
|---|---|---|
| Breakpoint (px) | 320 – 1440. At or below this viewport width the menu collapses behind a hamburger button. | 1024 |
| Mobile Layout | Accordion, Off Canvas, Dropdown | Accordion |
| Sticky Mobile Header | On / off | Off |
Accessibility field#
ARIA Label names the navigation landmark for screen readers. It defaults to "Main navigation". If you have more than one menu on a page, give each a distinct label, for example "Footer navigation". Do not leave the field empty: an empty label is kept empty rather than reverting to the default.
Mobile layouts in detail#
Below the breakpoint, the menu items stack in a single column and every mega panel becomes a normal, static block whose column grid collapses to one column. Panel overlays are hidden and nested submenus are indented.
| Layout | What visitors see |
|---|---|
| Accordion | Tapping the hamburger reveals the menu in the page flow. Each parent item expands in place, pushing the content below it down. |
| Dropdown | The menu floats directly below the bar over the page content, on a white panel with rounded corners. |
| Off Canvas | A drawer slides in from the start edge (the left in left-to-right languages, the right in right-to-left), up to 320 px or 85% of the screen wide. It has a close button and a dimmed backdrop, and page scrolling is locked while it is open. |
- With Sticky Mobile Header on, the collapsed bar sticks to the top of the screen while visitors scroll. It has no effect above the breakpoint.
- Resizing the window back above the breakpoint closes the drawer and any open items automatically.
- Tapping outside the open menu closes it.
- Click-trigger behaviour is suspended in collapsed mode: tapping a parent link follows it, and the small arrow button next to it expands the submenu.
Hover and click triggers#
| Trigger | Behaviour |
|---|---|
| Hover | Pointing at an item opens it after the Open Delay, and moving away closes it after the Close Delay. Opening one item closes its siblings. Keyboard focus also opens the item immediately, so keyboard users get the same panels. |
| Click | Clicking a parent item toggles its panel instead of following its link, and closes its siblings. Choose this for touch-first sites or when parent items do not link anywhere useful. |
With either trigger, the small expand button beside a parent item always toggles that item, so touch and assistive-technology users can open submenus without relying on hover.
Style tab reference#
Style controls are grouped so you can restyle the bar, the panels and the mobile hamburger independently.
| Group | What it controls |
|---|---|
| Menu Items | Font family, size, weight, line height, letter spacing and text transform; padding, margin, item gap, border radius, border and shadow. |
| Item Colors | Text colour and background for three states: Normal, Hover and Active. |
| Mega Panel | Background (Classic or Gradient with two colours and an angle), overlay, padding, margin, border radius, border and shadow. |
| Columns | Column gap, alignment (Left, Center, Right), and an optional divider line with its own width (0–10) and colour. |
| Panel Headings, Panel Links, Panel Icons, Panel Images, Panel Buttons | Typography and colours for elements inside mega panels, including link hover colour, icon size and spacing, image hover effect (None, Zoom, Lift, Fade) and button hover colours. |
| Dropdown (non-mega) | Background, text colour, minimum width, corner radius and item padding for ordinary submenus. |
| Hamburger | Size, colour and hover colour of the mobile toggle button. |
Spacing fields (padding, margin, border radius) accept one to four space-separated lengths, so values such as 10px 14px save and render correctly. The Active state applies to the page being viewed and to every item on its branch, so a parent item stays highlighted while a child page is open.
Keyboard navigation#
Advanced Menu is fully usable without a mouse. Arrow-key handling applies to the top-level bar only, so form fields inside a mega panel keep their normal keys.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Move through links and buttons in the normal page order. |
| → / ← | Move to the next or previous top-level item, wrapping at the ends. The directions are mirrored automatically on right-to-left pages. |
| ↓ | On an item with a submenu or panel: open it and move focus to its first link. |
| ↑ | Close the open item. |
| Esc | Close the innermost open item and return focus to its link. If nothing is open and the mobile menu is showing, close the mobile menu. |
| Enter / Space | Follow the focused link, or toggle the focused expand button (native browser behaviour). |
Limitations
- Home and End are not supported.
- The off-canvas drawer does not trap focus; tabbing past its last link continues into the page behind it.
- ↓ on an item that has no submenu moves focus to the next top-level item rather than doing nothing.
Screen readers. The element renders as a <nav> landmark with your ARIA label. The hamburger and every expand button expose aria-expanded, the hamburger also exposes aria-controls, and the current page is marked with aria-current="page". When the menu collapses to mobile, focus moves into it on open and returns to the hamburger on close.
Right-to-left (RTL) support#
On sites whose language is right-to-left (Arabic, Hebrew, Persian and others) the menu mirrors itself: spacing and panel offsets use logical properties, the off-canvas drawer slides in from the right, and the left and right arrow keys swap meaning. No setting is needed; the menu follows the page's text direction.
Configuration recipes#
A simple header menu#
- Add an Advanced Menu and select your menu.
- Set Menu Layout to Horizontal, Menu Alignment to Right and Submenu Indicator to Arrow.
- Leave every Mega Navigation toggle off. Submenus open as ordinary dropdowns.
- In Item Colors set Normal, Hover and Active text colours.
A multi-column mega menu#
- Under Mega Navigation, switch on the "Products" item and set Columns to 4.
- Click "Products" on the canvas and drop in a Heading, a short Text, an Icon List and a Button for each column.
- Under Mega Panel Appearance choose Hover, and Full Width for a site-wide panel (or Container Width to align with the bar).
- Under Animation choose Slide Down at 250 ms.
- In the Style tab, use Columns to add a column gap and a thin divider, and Mega Panel to set the background and shadow.
An off-canvas mobile menu#
- Under Mobile set Breakpoint to 1024 and Mobile Layout to Off Canvas.
- Optionally switch on Sticky Mobile Header.
- In the Style tab open Hamburger and set the size and colour.
- Switch the editor to the Tablet or Mobile device view to check it.
Notes#
- Everything on this page is available in the free plugin. There is no separate paid mega-menu add-on.
- Advanced Menu takes its links from a WordPress menu, so the same menu can power other places on your site, such as the Menu element or a theme location.
- The menu's markup is a standard
<nav>with CSS classes prefixedjalpi-advmenu, so developers can target it from a theme or the Custom CSS field. - Menu items imported with starter kits that use theme locations may arrive with a location set that has no control in the editor. Choosing a menu in the Navigation Menu select replaces it.
Source
Files
includes/elements/class-jalpi-element-adv-menu.php assets/js/jalpi-frontend.js assets/css/frontend.css admin/editor/src/components/panels/PropertiesPanel.tsx
Related#
Last updated: November 2026