User Tools

Site Tools



For more details see how the Mega Menu for Magento 2 extension works.

Guide for Mega Menu for Magento 2

Apply dynamic and flexible navigation menu to your webstore with Magento 2 Mega Menu extension. Add various types of content right to the menu bar to attract customers’ attention and enhance their shopping experience.

  • Adjust your menu display using different layouts
  • Add dynamic blocks, videos, images and links
  • Apply various catchy labels
  • Configure the menu without any technical skills
  • Make your menu mobile friendly
The extension is fully compatible with the native Magento Page Builder functionality.


To set the general settings of the extension, go to Stores → Configuration → Amasty Extensions → Mega Menu.

Visual content is available for desktops only, but in mobile version, the general submenu dropdowns and colour schemes are also displayed.
Use the video guide to set up a basic mega menu in a few minutes:

Check the most common use cases configuration:

Expand the General tab.

Enabled - set to Yes to activate Mega Menu.

Enabled Sticky Menu - enable to display sticky menu navigation during vertical page scrolling.

Enable Hamburger Menu For Categories - enable this option if you want to hide the categories into a separate menu type.

How does it work?

Three lines at the top left corner will appear.

When you click it, all the categories will dropdown.

So all the categories are nested under the 3 lines. It is useful if you would like to have additional space for custom tabs in the top menu bar.

Template for Mobile View - choose the way the categories will be displayed on mobile devices. Two options are available: Accordion and Drill Down.

Accordion menu opens subcategories without redirects:

Drill Down menu opens each subcategory on a new tab:

Show Mega Menu Icons on - select the views to show category icons. 3 options are available:

  • Both Desktop and Mobile
  • Desktop Only
  • Mobile Only

Icons can be added to the main categories and subcategories. In a hamburger menu it looks like this:

For horizontal menu the icons will be displayed in the same way:

In the Color Settings tab, you can customize the menu style to match your website design.

Color Scheme Template - select one of the ready-made templates or choose Custom to adjust colours manually.

With a handy color-picker tool it is possible to configure the colors for:

  • Menu Background/Text;
  • Submenu Background/Text;
  • Menu Item Hover;
  • Hamburger Button.

You can also set a custom submenu background image if needed.

Submenu background image sample:

The whole color scheme is configured as below:

To adjust the display of default menu items, please go to Catalog → Categories and click the category you need.

Expand the Mega Menu tab.

General Settings

Submenu Width - set the width of the dropdown tab that will fit your website style.

Full Width - submenu will have the same width as the general menu bar.

Auto - the width will be set automatically according to the content options.

Custom - this option allows to set the width manually (in pixels).

Menu Label Text - specify the text of the label to attract customers’ attention to the necessary block of the menu.

Text/Background color - customize label’s style using color picker tool.

Mega Menu Icon - upload or select from the gallery an icon if you want to visualize the menu item. It can be applied to desktop and/or mobile view depending on General Configuration.

Only the JPG and PNG images without the background will be displayed correctly. This format is necessary for the correct hover work (icons copy the hover settings of the items they're assigned to). Also, the maximum file size is 2 MB.

Note: the package contains pre-made icons for the following business spheres:

  • Clothes & Accessories
  • Device
  • Food
  • Mechanic
  • Medicine

To apply them, click the Select from Gallery and proceed to the ammegamenu folder.

The final result with and without the hover looks in the following way:

Submenu Type - two options are available: With Content or Without Content.

With Content: if you enable this setting, you will be able to configure the menu content for subcategories. In this case, child categories will be displayed anyway, but you can still add any content for the main one.

Without Content: in this case, subcategories content won't be displayed.

Subcategories Position - choose where to display the subcategories - left or top.

How it works:

In the hamburger menu we've enabled the 'With Content' option for the Women category, and it becomes possible to configure the content for subcategories of any level. Also, the 'Subcategories Position' setting is set to Top. In the case below, we've added the product widget to the subcategory of the 2nd level, and the categories of the higher level are displayed at the top of the window.

The example of the hotizontal menu and the Left position:

Tip for Magento Enterprise users: try not to leave content field for subcategories empty, as the Page Builder can make the window wider than needed.


In this tab, you can adjust submenu content. The extension allows you to add images, videos, CMS blocks, banners, widgets and products. You can arrange elements the way you need using WYSIWYG editor. Also, the extension is fully compatible with the Page Builder for Magento Enterprise.

Magento Page Builder Functionality

Page Builder allows creating rich in content pages just in few clicks via the handy drag-and-drop function.

This tool includes various layouts, content and media elements. With the preview mode, you can check the result and make edits if needed. Each element has its own settings so that you can configure it according to your website style and business needs.

Here you can see all available elements:

Check Page Builder User Guide to learn more about the elements and see the variants of Page Builder usage.


If Page Builder is not installed, it is possible to customize the menu bar via WYSIWYG editor.

For example, to make columns you need to insert the table and specify the necessary number of columns, rows and adjust additional settings. You may use the {child_categories_content} variable for showing child categories and so on.

For more information, see this WYSIWYG User Guide.
Employ Magento 2 Advanced Product Reviews extension to show product reviews right on the navigation menu and engage customers on their first step of the interaction with your store website.

Amasty MegaMenu Products Widget

Add a special MegaMenu widget to the drop-downs to promote your new, featured or best-selling products right in the menu.

Click Insert Widget in the editor.

Adjust Widget Options according to your business needs.

Widget Type - choose Amasty MegaMenu Products widget type.

Title - specify the title of the block that will be displayed to customers.

Block Layout - select the layout for the block: Grid or Slider.

Number of Visible Items - if Slider layout is chosen, set the number of items that will be shown at once.

Slider Width(px) - adjust the width of the slider to match your Mega Menu configuration.

Slider Autoplay - if Yes, the products will be switched automatically. If No, customers will have to switch manually.

Slider Autoplay Speed(ms) - set the particular switching speed if needed.

Show Product Options & 'Add to Cart' Button - if Yes, the customers will see product options and will be able to add a product to cart right from the drop-down.

Number of Products to Display - specify the general number of products you want to be shown in a grid/slider.

Template - Amasty Products Grid Template is chosen by default.

Conditions - set flexible conditions to show the products you need.

To avoid common mistakes while setting the conditions, check this post.

Cache Lifetime (Seconds) - specify the time between the widget updates in seconds. If not set, equals to 86400 seconds (24 hours). To update widget instantly, go to Cache Management and clear Blocks HTML Output cache. The widget will not show products that begin to match the specified conditions until the cache is refreshed.

You can add the widget to any category or custom menu item.

Custom Menu Items Grid

With the Mega Menu extension, you can add custom items to the menu bar. To see all additional items on a separate grid, go to Content → Amasty Mega Menu → Custom Menu Items.

Here you can check the items' Title, URL Key, active Status and Sort Order.

Edit or Delete items in the Action column or perform mass actions via Actions dropdown menu.

To create a new menu item, click Add New Custom Item.

New Custom Item

Specify the General Settings and the Content of a new menu tab.

Title - fill in the title that will be displayed in the navigation menu.

URL Key - set the URL to redirect customers after clicking the menu item: Internal URL, External URL or CMS Page.

CMS Page - select the page to direct customers to. If Internal/External URL is specified in the option above, set the particular URL.

Status - enable an item for mobile devices, desktops or for both. Disable an item if needed.

Adjust Submenu Width and Menu Label if needed.

Hit the Save button.

With the extension, you can easily customize the menu items order.

Navigate to Admin Panel → Content → Menu Builder.

Adjust the position of each menu item (both top categories and custom menu items) using handy drag-and-drop functionality.

Frontend Examples

Enrich your site menu bar with unique content.

Adjust submenu dropdown style according to your website design. Add catchy labels to any item of the menu.

Increase the number of purchases by show reviews in menu with Amasty Advanced Product Reviews for Magento 2.

Add Magento 2 Improved Layered Navigation to equip your website with a highly flexible vertical and horizontal navigation menu.

PWA for Mega Menu (Add-On)

With a ready-made PWA solution, you can provide shoppers with the outstanding mobile experience. Customers can surf the store with a stylish and responsive menu.

The feature can be enabled only after purchasing the PWA for Mega Menu Add-On. Also, you need to install PWA Studio first.

If the add-on is installed, Venia theme will display a Accordion Hamburger menu with icons in a dark color scheme in the following way:

A Drill Down menu in a light color theme looks like this:

How it looks on tablets:

The sample of top menu on the Venia theme:

By now, the PWA add-on does not support widgets and CMS blocks in Mega Menu.
Find out more about Magento PWA integration here.

Find out how to install the Mega Menu for Magento 2 via Composer.

Rate the user guide
 stars  from 2 votes (Details)
magento_2/mega_menu.txt · Last modified: 2021/03/18 12:55 by tihomirova