For more details see how the Mega Menu for Magento 2 extension works.
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.
This version has a set of features for desktop menu customization. Using the Lite version, you can:
Keep in mind, that you won't be able to create engaging content for your categories and subcategories.
To choose a menu type and customize a color scheme, navigate to Stores → Configuration → Amasty Extensions → Mega Menu Configuration.
Enabled - set to Yes to activate Mega Menu.
Enable Sticky Menu - use this setting to choose for which views the sticky menu should appear. You can opt for mobile, desktop, or enable it for both views. If necessary, you can also disable the sticky menu.
Enable Hamburger Menu For Categories on Desktop - enable this option to hide the categories into a separate menu type for desktop view. For mobile version hamburger menu is used by default.
Mobile Menu Title - Specify title for the menu in this setting. Please note that the title length is restricted to 17 characters.
Hide “View All” Links for Categories - When set to Yes, parent category title will become clickable.
Template for Mobile View - Specify the template for mobile view. You can choose 'Drill down' or 'Accordion'.
Show Mega Menu Icons on - Choose for which views the mega menu icons should be displayed. You can opt for mobile, desktop, or enable it for both views.
Enable Help & Settings Tab - When enabled, this tab appears on both desktop and mobile devices.
Tab Custom Name - Here you can customize the name of the 'Help & Settings' tab.
Mobile Menu Width(px) - Show mobile menu from target screen size.
Color Scheme Template - select one of the ready-made templates ('Green', 'Dark', 'Lite') or choose Custom to adjust colors manually.
With a handy color-picker tool it is possible to configure the colors for:
You can also set a custom submenu background image if needed.
With the extension, you can add custom items to the menu bar. To see all additional items on a separate grid, go to Amasty → Mega Menu Lite → Custom Menu Items.
Here you can check the items' Title, URL Key (internal or external) and active Status.
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.
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 or External URL.
Internal/External URL - provide the required URL address.
Status - enable an item for mobile devices, desktops or for both. Disable an item if needed.
Menu Label Text - specify a text to highlight a custom item with a label if necessary.
Label Background/Text Color (hex) - adjust label colors to match menu design.
Hit the Save button.
You can also customize the menu items order.
Navigate to Amasty → Mega Menu Lite → Menu Builder.
Adjust the position of each menu item (both top categories and custom menu items) using handy drag-and-drop functionality.
Using the Pro version, you can add various content types to make your menu more appealing and catchy. Pro version has the following features:
To set the general settings of the extension, go to Stores → Configuration → Amasty Extensions → Mega Menu Configuration.
Expand the General tab.
Enabled - set to 'Yes' to activate Mega Menu.
Enable Sticky Menu - enable to display sticky menu navigation during vertical page scrolling and specify where you want it to be sticky:
If you need different types of cache for mobile and desktop devices, please, insert this code (line 2-8) into the section vcl_hash in the varnish configuration file (vcl).
sub vcl_hash { if (req.http.X-UA-Device ~ "^mobile" || req.http.X-UA-device ~ "^tablet" ) { hash_data("mobile"); } else { hash_data("desktop"); } }
For the correct work of this code, please make sure that you have this library installed.
Enable Hamburger Menu For Categories - enable this option if you want to hide the categories into a separate menu type.
Mobile Menu Title - Specify the title for the menu in this setting. Please note that the title length is restricted to 17 characters.
Hide “View All” Links for Categories - When set to 'Yes', parent category title will become clickable.
Template for Mobile View - choose the way the categories will be displayed on mobile devices:
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:
Mobile Menu Width(px) - Show mobile menu from target screen size.
In the Color Settings tab, you can customize the menu style to match your website design.
To adjust the display of default menu items, please go to Catalog → Categories and click the category you need.
Expand the Mega Menu tab.
Menu Label Text - specify the text of the label to attract customers’ attention to the necessary block of the menu.
Text/Label 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.
Display Category as Single Menu Item - if set to 'Yes', then category will be displayed without any content, including subcategories
Submenu Width - set the width of the dropdown tab that will fit your website style.
Auto - the width will be set automatically according to the content options.
Custom - this option allows to set the width manually (in pixels).
To apply them, click the Select from Gallery and proceed to the ammegamenu folder.
Subcategories Display - two options are available: With Content or Without Content.
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:
In this tab, you can adjust submenu content. The extension allows you to add images, videos, CMS blocks, banners, widgets, and products. NB: The extension is fully compatible with the Page Builder for Magento Enterprise.
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:
Add a special MegaMenu widget to the drop-downs to promote your new, featured or best-selling products right in the menu.
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.
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.
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.
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.
Menu Label Text - please specify text for the label of your custom menu item if needed.
Label Text/Background Color (hex) - here you can set up colors for the custom menu item's label.
Mega Menu Font - 'Bold' or 'Regular'.
Display as Single Menu Item - If set to 'Yes', then the item will be displayed without any content.
Submenu Width - adjust the submenu item's width here by choosing one of the three available mods:
Mega Menu Font - 'Bold' or 'Regular'.
In order to customize the menu items order, please 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.
Enhance the mobile experience of your users and add extra content to your menu by using the Mega Menu Premium version:
To set the general settings of the extension, go to Stores → Configuration → Amasty Extensions → Mega Menu Configuration.
The Premium Plan adds two more settings here:
Animation Time - Enter the default animation time in seconds. Animation type is configured on the top category level. 0 value disables animations.
Animation Effect for Hamburger - Choose from the dropdown an animation type for hamburger menu opening (both mobile and desktop).
In the Color Settings tab, you can customize the menu style to match your website design.
To configure premium features for custom menu items please navigate to Content → Custom Menu Items.
As for the extra features provided by the premium version, you can configure the following:
Customer Groups - with this setting you can restrict the display of Custom Menu Items by customer groups. (Note: this functionality is available as part of an active product subscription or support subscription).
The Status setting continues to globally regulate the display of Custom Menu Items. For example, if it is set to Desktop Only, the items will only be visible on desktop devices and hidden from selected customer groups. If no customer groups are selected, the custom item will be visible to everyone.
Mega Menu Icon - Upload your icon for the custom menu item from the gallery or from your personal media archive. Maximum file size: 2 MB. Allowed file types: JPG, PNG. For desktop and/or mobile view depending on General Configuration. Use PNG files to utilize color change on hover. When using PNG files please make sure that the image doesn't have a background.
Menu Position, Sort Order - Specify custom position and priority of display of the custom menu item from the category tree.
"suggest": { "amasty/module-mega-menu-items-tree": "Install module-mega-menu-items-tree module to create custom items tree." },
Besides, the Mega Menu Premium allows you to configure content for the custom menu item separately for the desktop and mobile versions.
Submenu Animation - choose the animation type for your menu item from the dropdown.
Submenu Template - Choose the submenu template from the dropdown: 'Column View' or a 'Custom View'
Subcategories Template - The two options are available for this setting: 'Horizontal' and 'Vertical'. Please note that this setting will only be visible if you've selected the 'Custom View' option in the setting 'Submenu Template'.
Number of Columns - Specify the number of colunbs for the layout that you need. If the value is 0, the number of columns equals to the number of child categories. The maximum is 10. Please note that this setting will only be visible if you've selected the 'Column View' option in the setting 'Submenu Template'.
"suggest": { "amasty/module-mega-menu-items-tree": "Install module-mega-menu-items-tree module to create custom items tree." },
If you need different types of cache for mobile and desktop devices, please, insert this code (line 2-8) into the section vcl_hash in the varnish configuration file (vcl).
sub vcl_hash { if (req.http.X-UA-Device ~ "^mobile" || req.http.X-UA-device ~ "^tablet" ) { hash_data("mobile"); } else { hash_data("desktop"); } }
For the correct work of this code, please make sure that you have this library installed.
Mega Menu Font - 'Bold' or 'Regular'.
Display as Single Menu Item - Set 'Yes' if you want an item to be displayed without any content.
Display Content - Before or after subcategories.
Content - Use the Magento editor to add custom content to your custom menu item on mobile. Please note: manually added widgets not from the “Insert Widget” list, might not work properly.
In order to customize the menu items order, please 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.
To make additional functionality available, please install the suggested packages you may need.
Available with no additional fees:
For Lite, Pro and Premium versions:
amasty/mega-menu-page-builder
- Install mega-menu-page-builder module to activate PageBuilder and Mega Menu integration.amasty/mega-menu-graphql
- Install mega-menu-graphql module to activate GraphQl and Mega Menu integration.For Premium tariff plan only:
amasty/module-mega-menu-items-tree
- Install module-mega-menu-items-tree module to create custom items tree.amasty/module-mage-2.4.7-fix
- Install this module to fix bugs related to UI elements that were added in the release version 2.4.7.Available as a part of an active product subscription or support subscription:
For Lite, Pro and Premium versions:
amasty/module-mega-menu-lite-hyva
- Install this package to ensure Mega Menu Lite extension works with Hyvа.For Pro and Premium versions:
amasty/module-mega-menu-pro-hyva
- Install this package to ensure Mega Menu Pro extension works with Hyvа.For Premium tariff plan only:
amasty/module-mega-menu-premium-subscription-functionality
- This package enables the restriction of Custom Menu Items display by customer groups.With a ready-made PWA solution, you can provide shoppers with an outstanding mobile experience. Customers can surf the store with a stylish and responsive menu.
If the add-on is installed, the Venia theme will display an 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:
Find out how to install the Mega Menu for Magento 2 via Composer.