Mega Menu

Build responsive mega menus with columns, icons, badges, card images or full Elementor template panels. Works with the Elephanta Mega Menu widget and in native theme menus.

Free Appearance → Menus 2 min read Updated
On this page

Elephanta turns any WordPress menu into a mega menu with columns, icons, badges, card images, or a complete Elementor template as the dropdown panel. It works in the Elephanta Mega Menu widget and also in your theme's native menu locations.

#Build a mega menu in five steps

  1. Create your menu under Appearance → Menus.
  2. Expand a top-level item and enable Elephanta Mega Menu. Choose 1–6 columns, or select an Elementor/Elephanta template for the whole panel. With a template, choose whether it opens on Hover (default) or Click.
  3. Expand any item to upload an icon and add a badge (for example "New"). Child items also support a card image and the WordPress Description field.
  4. Add the Mega Menu widget to your Elementor header and select the menu.
  5. Style the menu bar, links, dropdown, cards, typography, colours, images, badges and mobile menu in the widget's Style tab.
Mega menu settings on a WordPress menu item.

#Template panels

When a dropdown template is selected, Elephanta renders only that template for the item. The item's WordPress child items stay saved but hidden. Removing the template brings them back.

Setting Options
Desktop Template Position Default / Attached keeps the dropdown fixed below the item and keeps your template's own size and spacing. Centered Below Menu uses a floating, viewport-safe centered panel.
Desktop Template Width Auto — Follow Elementor Template (detects Full Width / 100% containers), Force Full Viewport Width, or Natural Template Width.
Mobile Menu Breakpoint 320–1600 px for native menus. The widget offers Tablet, Mobile and Custom breakpoints.
Panel Z-Index Default 100000; up to 2147483647.

The template selector groups Elephanta reusable templates separately from Elementor saved templates, hides Elementor's Default Kit and marks templates with no content as Empty.

#Native theme menus (no widget needed)

Template panels are attached to the WordPress menu item itself, so they also work in your theme's native menu and in menu plugins that use the standard wp_nav_menu() function. Panels move into a body-level overlay so headers cannot clip wide content.

#Mobile behaviour

  • Menu label and arrow form one aligned row. Tapping either opens the panel on the first tap.
  • Panels become inline accordions, sharing one scroll area with the menu items below.
  • Even Hover items become click-only on mobile.
  • Expanded items animate open and update aria-expanded for accessibility.

#Widget features

Hover or click dropdowns, Escape key and outside-click closing, separate tablet/mobile breakpoints, full-viewport or contained panels, nested submenus, Full Width Side Inset spacing, and Menu & Dropdown Z-Index.

#Styling hooks for developers

Elephanta does not force mobile active colours. Style these classes to match your design:

.elephanta-mega-menu--click-only { }
.elephanta-mega-menu__item.is-open { }
.elephanta-native-template-item--click-only { }
.elephanta-native-template-item.is-elephanta-panel-open { }

CSS variables --elephanta-menu-layer and --elephanta-template-z-index control stacking.