Mega menu
Learn how to add menus to build your store's navigation
Last updated
Learn how to add menus to build your store's navigation
Last updated
A mega menu is a drop-down menu in which the top-level item has 2 levels of nested drop-down menus.
A mega menu affects how shoppers discover your product offerings and other information, which lets them browse easily and seamlessly. It is a perfect design choice when building a website with multiple categories and subcategories. The design also provides sufficient space for images (banners) and other rich content.
Different websites require different kinds of menus, depending on the size, nature, and objectives of your store. This article shows you how to create and customize your own suitable menu.
This article shows you how to create and add your Mega menu to Megamog theme.
This feature requires you to install the FoxKit All-in-one Sales Boost app to your store.
Steps:
Create a Mega menu in FoxKit app
Add your Mega menu to the theme
Save
Go to Apps > FoxKit Sales Boost app.
Select Mega menus feature > Create menu.
Give your new menu a title and select the Menu layout (Horizontal/Vertical). Then, click Create menu.
Title: Insert your menu item label;
Link: paste the page URL you want to link the menu item with, or simply leave it blank;
Include the full URL of that page, including the URL's HTTPS protocol.
Check the option 'Open link in a new tab' if needed;
Determine your Submenu layout as Mega/Dropdown;
Select how the submenu is opened: by hovering/clicking;
Select the Dropdown container width: Full width/ Auto width;
Enable to show content in the container if needed;
Set the number of submenu columns: 1-6 columns or based on the number of submenu items being added to the menu item.
You can add an icon and/or a badge to your menu item.
Select in what view that menu item and submenu items are displayed.
Once you have added your menu item, you can add submenu items to it.
Then, select the type: Text link/ Image banner.
Give your submenu item a label;
and Insert the link to redirect visitors to your desired page.
After adding the menu item title and its link, you can set a banner to it.
Select/Upload an image;
Add the image banner's Heading if needed;
Give the banner a button by inserting the Button label;
Adjust the color of the text.
This is an example of a Mega menu with Image banners added to the Submenu items:
Do the same with other menu and submenu items. You can also add third-level items to your menu.
Select the Menu layout you have set when you create the menu and start managing how your Mega menu appears on the storefront 🎨.
Once you have created a mega menu in FoxKit, go to the theme editor to display the mega menu.
Steps:
Go to Themes > Customize
Select the Header section > Mega menu
Make nessary changes
Save
Start with adding a Menu Heading to activate the feature. You can your Menu name, or any text you want.
Then, select the button position as on the menu location (On menu), or above (On top).
You can also set your mega menu to be opened by default (home page only).
Click on the Mega menu element in the theme editor. Then, right-click on it and select Inspect from the menu to access the Inspect window.
Once you have opened the Inspect window, you will see the HTML and CSS code for the web page. Find the code starting with:
Expand that code:
In the nested code lines, find the one that starts with <div class="m-megamenu_ ...
Expand it and copy the mega menu id:
This is an example of the ID you need to copy: m-megamenu-desktop-sections--15228110667818__729ed7ff-cd70-41ab-97b7-db284c5764d5
Once you have got your mega menu ID, go to FoxKit app > Mega menus to add it as the menu's CSS selector:
Steps:
From FoxKit app, go to Mega menus
Select the menu you want to add to the theme
Click Settings
Set the Render method as Replace CSS selector
In the field CSS selector, insert: # + the ID you have copied earlier
For example: #m-megamenu-desktop-sections--15228110667818__729ed7ff-cd70-41ab-97b7-db284c5764d5
Click Save.
Change the theme editor to mobile view using the device selector.
Click on the Mega menu element in the theme editor > Open the nested menu items.
Then, right-click on it and select Inspect from the menu to access the Inspect window. Once you have opened the Inspect window, you will see the HTML and CSS code for the web page. Find the code starting with:
Expand that code:
And copy the menu ID:
Once you have got your mega menu ID, go to FoxKit app > Mega menus to add it as the menu's CSS selector for mobile.
Steps:
From FoxKit app, go to Mega menus
Select the menu you want to add to the theme
Click Settings
Set the Render method as Replace CSS selector
In the field CSS selector of mobile menu, insert: # + the ID you have copied earlier
For example: #m-megamenu-desktop-sections--15228110667818__729ed7ff-cd70-41ab-97b7-db284c5764d5
Click Save.
ET VOILÀ! ✨ Your mega menu is ready.
Refresh your store to check.