🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

GravityExtra Mega Menu Setup Guide

Updated 11 min read WordPress Plugins Integrations A–Z
On this page
  1. What you need
  2. Install and activate
  3. How it fits into WordPress menus
  4. Build a mega panel
  5. Content blocks
  6. Sub-menu links
  7. Widget area
  8. Synced pattern (blocks)
  9. Custom HTML
  10. Image
  11. Icon card
  12. Tabs
  13. Where the mega menu appears
  14. Classic themes: menu locations
  15. Block themes: the Mega Menu block
  16. Anywhere: the shortcode
  17. Horizontal and vertical menus
  18. Phones and tablets
  19. Hover or click, and sticky
  20. Style and live preview
  21. Keyboard and screen reader support
  22. Speed
  23. How it differs
  24. Removing the plugin
  25. Troubleshooting

GravityExtra Mega Menu turns the menus you already have in WordPress into mega menus: wide panels with columns of links, widgets, synced patterns, custom HTML, images, icon cards and tabs. You keep building the menu itself in Appearance → Menus, the way WordPress always works, and switch individual top-level items to a mega panel. The plugin works with classic themes by replacing a theme menu location, and with block themes through a Mega Menu block or a shortcode. It is a standalone WordPress plugin: no Gravity Forms needed. This guide covers installation, building panels, every content block, horizontal and vertical menus, phones, sticky menus, styling, keyboard and screen reader support, and what happens without a license.

What you need

WordPress 6.5 or newer and PHP 7.4 or newer. Any theme works: classic themes that register menu locations, and block themes such as the default themes that ship with WordPress. Editing mega menus needs the edit_theme_options capability, the same capability WordPress asks for to edit menus, so administrators can use it straight away and you can give it to a custom role for a site manager. Activating the license needs an administrator.

Install and activate

  • Upload the plugin zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Appearance → Mega Menu → License, enter your GravityExtra license key and press Activate License. The key is shown masked once it is active.
  • Open the Settings tab and switch the mega menu on for the theme location you want (classic themes), or add the Mega Menu block to your header (block themes).
The License tab of the Mega Menu settings with the key field showing a masked active key and a Deactivate License button
Activate your license key on the License tab.

Without an active license the plugin steps aside: visitors see your theme’s normal menu exactly as before, the Mega Menu block and the shortcode print a plain list of the same links, and the settings are read-only. Nothing on the site breaks and no menu data is lost.

How it fits into WordPress menus

The plugin does not have a separate menu system. Every mega menu is a normal WordPress menu with its normal items, so pages, posts, categories, custom links and their order stay where WordPress keeps them. The plugin adds a few fields to each menu item and stores the panel layout with that item. You can switch the mega menu off at any time and the theme shows the same menu as a regular dropdown again.

Each menu item gets these fields under Mega menu when you expand it in Appearance → Menus:

  • Icon: one of 47 line icons that come with the plugin. They are inline SVG drawings, so there is no icon font to load and no request to another server.
  • Icon only: shows just the icon in the menu bar. The label stays available to screen readers, so a cart icon is still announced as “Cart”.
  • Badge text: a short pill such as “New” or “Sale” next to the label.
  • Open a mega panel (top-level items only) and the Edit mega panel button that opens the builder.

Build a mega panel

Expand a top-level item, tick Open a mega panel and press Edit mega panel. The builder opens in a dialog with the panel width at the top and your rows below it.

The mega panel builder dialog in Appearance, Menus: panel width, two rows with columns, and content blocks for sub-menu links, an image, icon cards and custom HTML
Rows, columns and content blocks in the builder dialog on Appearance → Menus.

If you add no rows at all, the panel builds itself: one column for every sub-menu item, with the sub-menu item as the column heading and its own children as links. That is often all a store or a magazine needs. To design the panel yourself:

  • Press Add row. A panel can have up to six rows.
  • Press Add column to split the row. Each row can have up to six columns. Leave the width on Auto to share the row evenly, or pick 1/4, 1/3, 1/2, 2/3, 3/4 or the full width for a column. The panel uses a twelve-column grid, so a 1/2 column next to two Auto columns gives a half and two quarters.
  • In each column choose a content type under Add content and press Add. A column can hold up to twelve blocks, stacked from top to bottom.
  • Use the arrow buttons to move rows, columns and blocks, and Remove to delete one.
  • Press Done, then Save Menu. The summary next to the button shows how many rows and blocks the panel has.

Panel width is either the width from the Style tab, the full width of the menu bar, or a limited width (set the maximum on the Style tab). A limited panel is centred under the menu.

Content blocks

Shows a sub-menu item as a heading with its children as a list of links, or all sub-menu items of the panel at once. Deeper levels appear as indented lists. Optional heading text replaces the item’s own title. Because the links come from the menu itself, you add or reorder them in Appearance → Menus as usual, and the current page is marked for screen readers with aria-current.

Widget area

The plugin registers widget areas called Mega menu area 1, 2, 3 (set how many on the Settings tab, up to eight). Put any widget into one of them in Appearance → Widgets, for example opening hours, a search box or a list of recent posts, and choose that area in the block.

Synced pattern (blocks)

Design rich content with the block editor, save it as a synced pattern, and pick it here. The pattern is rendered with its blocks, so headings, lists, buttons, columns and images look the way they do in the editor. Edit the pattern once and every panel that uses it changes too. A pattern inside a panel cannot load another mega menu, which keeps pages from looping.

Custom HTML

For a short promotion or a line of text with a link. The HTML is cleaned with the same rules WordPress uses for post content when you save it and again when it is shown: scripts, event attributes such as onclick and javascript: links are removed, ordinary markup such as paragraphs, links, strong text and images stays.

Image

Choose an image from the media library (or type its media ID), pick a size, and optionally add alternative text, a link and a caption. If you leave the alternative text empty, the text from the media library is used. A linked image always gets a text alternative, from the caption or the image title, so the link has a name for screen readers.

Icon card

An icon, a short title, one line of text and an optional link, for things like free shipping, gift cards or support. Cards are good in a narrow column next to links.

Tabs

Several tabs in one block, each with a label, an optional icon and one content block: sub-menu links, custom HTML, a synced pattern, an icon card, an image or a widget area. Tabs follow the WAI-ARIA tabs pattern: arrow keys move between tabs, Home and End jump to the first and last tab, and only the selected tab’s content is shown and read.

A store header with a horizontal mega menu open under Shop: four columns of category links, a tent image with a caption, two icon cards and a members offer
A mega panel built from a normal WordPress menu: columns, image, icon cards and HTML.

Where the mega menu appears

Classic themes: menu locations

The Settings tab lists every menu location your theme registers, with the menu assigned to it. Switch Use the mega menu on for a location and choose Horizontal or Vertical. The theme’s own menu call is then answered by the mega menu, so you do not edit any theme file. Locations you leave off keep the theme’s menu.

Block themes: the Mega Menu block

Block themes build their header in the Site Editor. Open Appearance → Editor → Patterns → Header (or the template part your theme uses), add the Mega Menu block where the menu should be, and pick the menu, the direction and how panels open in the block settings. The editor shows a live preview of the menu. Many block themes do not show Appearance → Menus on their own; the plugin switches that screen on so you can build the menu and its panels there.

Anywhere: the shortcode

Place a mega menu in a page, a widget or a template with [gewmm_menu menu="main-navigation"]. Use the menu’s slug, name or ID. Optional attributes: orientation (horizontal or vertical), trigger (hover or click), label (the name screen readers announce for this menu) and class. For example [gewmm_menu menu="shop-by-activity" orientation="vertical" trigger="click"] shows a vertical menu that opens on click.

Horizontal and vertical menus

A horizontal menu opens its panels below the menu bar, at full width or at the limited width. A vertical menu, for a sidebar or a category list, opens each panel to the side of the menu. Flyout sub-menus (items without a mega panel) work in both, with as many levels as your menu has.

Phones and tablets

Below the breakpoint on the Settings tab (768 pixels by default, 0 to switch it off) the menu is replaced by a menu button. You choose what the button opens:

  • Off-canvas drawer: a panel slides in from the left or right with a close button. While it is open the page behind it does not scroll, the drawer is announced as a dialog, keyboard focus stays inside it, and Esc closes it and returns focus to the menu button.
  • Accordion: the menu opens below the button, inside the page.

In both modes every panel and sub-menu opens inline as an accordion, and the columns of a panel stack into one column, so nothing is cut off on a narrow screen. Change the button text on the Settings tab.

The same menu on a phone: an off-canvas drawer with a close button and the Shop panel expanded as an accordion in one column
On phones the menu becomes an off-canvas drawer (or an accordion).

Hover or click, and sticky

Open panels on can be Hover or Click. With hover, panels open when the pointer rests on an item and close shortly after it leaves; the buttons still work by click, tap and keyboard. With click, panels open only from the buttons, which suits menus with a lot of content. The block and the shortcode can override this per menu.

Sticky menu keeps the first horizontal mega menu on the page fixed at the top while visitors scroll, with an optional distance from the top. A spacer keeps the page from jumping when the menu sticks. It is off on phones unless you tick Also on phones, and it leaves room for the WordPress toolbar when you are logged in.

Style and live preview

The Style tab sets the colours of the menu bar, the open or hovered item, the panel, panel headings, panel links and the keyboard focus ring; the font (your theme’s font, a system sans-serif, a serif or a monospace stack, no web font downloads); font size and weight; item padding; panel padding; space between columns; corner radius; the panel width; the opening animation (none, fade, slide down or zoom) and its length; and a soft panel shadow. The default colours have strong contrast with each other.

The Style tab: colour pickers, font, sizes, spacing and animation on the left, and a live preview of the menu with its panel open on the right
Style settings with a live preview of your own menu.

The preview on the right is your real menu, drawn by the same code as the front end. Every change shows in the preview at once; visitors see it after you press Save Changes. Pick another menu above the preview to check it too. Visitors who ask their device for reduced motion never see the opening animations.

Keyboard and screen reader support

The menu follows the WAI-ARIA disclosure navigation pattern. Links stay real links, and every panel or sub-menu has its own button next to the link, with aria-expanded and aria-controls. Items without a link (an empty URL or #) are a single button. What visitors can do with the keyboard:

  • Tab and Shift+Tab move through links and buttons in reading order. A panel closes when focus leaves it.
  • Enter or Space on a button opens or closes its panel.
  • Esc closes the open panel and puts focus back on its button; on a phone it closes the drawer.
  • The arrow keys move between top-level items, Down (or Right in a vertical menu) opens a panel and moves into it, Up and Down move through the links of a panel, and Home and End jump to the first and last link.
  • Every focused link and button has a clearly visible focus ring in the colour you set.

Icons are hidden from assistive technology, icon-only items keep their label for screen readers, the menu has a name (the menu name, or the label you give the shortcode), and closed panels are neither visible nor reachable with the keyboard.

Speed

The plugin’s stylesheet and script load only on pages that show a mega menu. The script is small, has no dependencies (no jQuery on the front end), loads deferred in the footer, and does nothing until a visitor opens a panel. Colours and sizes are CSS variables printed with the stylesheet. There are no outside requests: icons are inline, fonts are the ones already on the visitor’s device or in your theme.

How it differs

  • Your menus stay WordPress menus. There is no second menu system to learn or migrate away from; turn the plugin off and your theme shows the same menu.
  • Accessible by design. Disclosure buttons, Esc and arrow keys, visible focus, ARIA tabs and a dialog drawer on phones are built in, not an extra setting.
  • Block content without a page builder. Synced patterns bring anything the block editor can build into a panel.
  • Light. No jQuery, no icon font, no outside requests, and nothing loads on pages without a mega menu.
  • Classic and block themes. Location replacement for classic themes, a block and a shortcode for block themes.

Removing the plugin

Deactivating the plugin gives your theme its normal menus back at once. Deleting it from the Plugins screen also removes its settings, the license data and the mega panel layouts stored with your menu items. Your menus, menu items, widgets and synced patterns stay.

Troubleshooting

The menu looks like the theme’s normal menu. Check that the license is active and that the mega menu is switched on for that location on the Settings tab. Some themes print their menu without a location; use the block or the shortcode there.

A panel is empty. A mega panel without rows shows the item’s sub-menu items, so an item with no sub-menu items and no rows has nothing to show and works as a plain link. Add rows in the builder or sub-menu items in the menu.

A widget block shows nothing. The widget area is empty: add a widget to it in Appearance → Widgets.

The panel is behind other content. Some themes put the header in a container with hidden overflow or a low stacking order. Use the full-width panel option or move the block outside that container.

Questions? Open a support ticket and include your theme name and a link to the page.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr