# Mega menu

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2Fgki5W0rB8vW58QbKbJtN%2FHelp%20Center%20(1).jpg?alt=media&#x26;token=3c6169c9-1acc-4c63-95b9-13d7320f0025" alt=""><figcaption><p><a href="https://chromewebstore.google.com/detail/foxtransfer-html-to-shopi/babcinhpofjfhjjbcnjhoikcjbgebimb?utm_source=foxecom&#x26;utm_medium=helpcenter&#x26;utm_campaign=foxtransfer_launch">Install FoxTransfer Chrome Extension FREE here</a></p></figcaption></figure>

A mega menu is a drop-down menu in which the top-level item has 2 levels of nested drop-down menus.&#x20;

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.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FxLcgcecyMSd6Ed3mJNuD%2Fimage.png?alt=media&#x26;token=15b264d7-45a1-4bf0-9cfc-d9cafdc111dd" alt=""><figcaption></figcaption></figure>

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.

{% hint style="info" %}
This feature requires you to install the [FoxKit All-in-one Sales Boost app](https://apps.shopify.com/foxkit?utm_source=foxecom\&utm_medium=help_center_megamog_mega_menu\&utm_campaign=anchor_text\&utm_term=foxKit_all-in-one_sales_boost_app) to your store.
{% endhint %}

{% hint style="success" %}
**Steps:**

1. Create a **Mega menu** in **FoxKit** app.
2. Add your **Mega menu** to the theme.
3. Save.
   {% endhint %}

## **How to create a Mega menu in FoxKit app**

### **Create Menu**

1. Go to **Apps** > **FoxKit Sales Boost** app.
2. Select **Mega menus** feature > **Create menu**.
3. Give your new menu a **title** and select the **Menu layout** (Horizontal/Vertical). Then, click **Create menu**.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F7L5Yo5mB9k9cVeLioiK3%2Fimage.png?alt=media&#x26;token=4c77d0b5-0362-46f7-b4ed-fe67cc7b0815" alt=""><figcaption></figcaption></figure>

### Add and customize your Menu items and Submenu items

### Menu item settings

#### General

* Title: Insert your menu item label;
* Link: paste the page URL you want to link the menu item with, or simply leave it blank;

{% hint style="info" %}
Include the full URL of that page, including the URL's HTTPS protocol.&#x20;
{% endhint %}

* Check the option 'Open link in a new tab' if needed;

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FDjUDdSLQRhpDlbV6WzuZ%2Fimage.png?alt=media&#x26;token=02bfe214-bb1e-4e5c-9bb5-38792f908b97" alt=""><figcaption></figcaption></figure>

#### Submenu settings

* Determine your **Submenu layout** as Mega/Dropdown;

{% tabs %}
{% tab title="Submenu as Mega" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FfCgNvvENokaDnW5PLM4m%2Fimage.png?alt=media&#x26;token=f06b46ab-2cf5-4c2b-ab0b-6dda9c4cce95" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Submenu as Dropdown" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2Fe5xvlBHq1NVH1KsZ71Ar%2Fimage.png?alt=media&#x26;token=bad7529a-87f7-47a3-a1e6-f3f07016e9f6" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

* 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.

  <figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FT8I8gqluGDgJjVW1b1wj%2Fimage.png?alt=media&#x26;token=873ea0fa-20fc-4432-99f6-66ab24374fd7" alt=""><figcaption></figcaption></figure>

#### Icon & Badge settings

You can add an icon and/or a badge to your menu item.

{% tabs %}
{% tab title="How the icon is added to the menu item" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FOphjGYtxt2Q5ggIPWi51%2Fimage.png?alt=media&#x26;token=9d75485f-9e51-4672-889f-434da4b5c14a" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="How the badge is added to the menu item" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FU28mhLPZt9WGeUjia6tz%2Fimage.png?alt=media&#x26;token=cc977495-f17b-46fd-a0f8-4f7e3acce468" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2Ff7VZhJvxGwqatCBdDErp%2Fimage.png?alt=media&#x26;token=9e4931bd-42b0-4d65-a33d-610a56e98783" alt=""><figcaption></figcaption></figure>

#### Visibility

Select in what view that menu item and submenu items are displayed.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2Fp2bmhIKtsny22e7X5LGA%2Fimage.png?alt=media&#x26;token=6d7a6715-bd35-4415-a4d8-743f1904125b" alt=""><figcaption></figcaption></figure>

### Submenu item settings

Once you have added your menu item, you can add submenu items to it.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FlwA8i7rNIKnPSscB7RKm%2Fimage.png?alt=media&#x26;token=e86d9346-bdfd-4a53-a33b-0575cc128e0a" alt=""><figcaption></figcaption></figure>

Then, select the type: [**Text link**](#submenu-item-as-text-link)/ [**Image banner**](#submenu-item-with-a-image-banner).

#### Submenu item as Text link

* Give your submenu item a label;
* and Insert the link to redirect visitors to your desired page.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FrCGBbmQK5sNvRXWf4DOi%2Fimage.png?alt=media&#x26;token=1d020b81-eb97-48c8-be4b-e19a0c5f1eb0" alt=""><figcaption></figcaption></figure>

#### Submenu item with an Image banner

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.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FyohWDSFoP2MKSXBmg39o%2Fimage.png?alt=media&#x26;token=28138c13-0cc2-41b4-bb63-2c3681314fd4" alt=""><figcaption></figcaption></figure>

This is an example of a Mega menu with Image banners added to the Submenu items:

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FW4Bx9yvIlPSzoLfckE7P%2Fimage.png?alt=media&#x26;token=d7d6a725-e8b8-4abe-96d1-ee06a53ec1b0" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Do the same with other menu and submenu items. You can also add third-level items to your menu.&#x20;
{% endhint %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FPSqz2WjSwwR8HpGguiz5%2Fimage.png?alt=media&#x26;token=3b79409a-1675-4b1e-9ccc-492591c05975" alt=""><figcaption></figcaption></figure>

### Menu Appearance settings

Select the [**Menu layout**](#create-menu) you have set when you create the menu and start managing how your Mega menu appears on the storefront 🎨.

{% tabs %}
{% tab title="➡️ Horizontal menu" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FPLRoMghWkazTOmKPwphk%2Fimage.png?alt=media&#x26;token=e9e7f4f4-9d14-48a1-8f37-756cb218f536" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="⬇️ Vertical menu" %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FGFzoqLXmJeEvJSu8oKbP%2Fimage.png?alt=media&#x26;token=39cc00e6-e721-44a5-8ece-dbc7dfae389f" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Add the Mega menu to the Megamog theme

Once you have created a mega menu in FoxKit, go to the theme editor to display the mega menu.

{% hint style="success" %}
**Steps:**

1. Go to **Themes > Customize**
2. Select the **Header** section > **Mega menu**
3. Make nessary changes
4. Save
   {% endhint %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F2a7XEub9IDuvabzaZ7Zh%2Fimage.png?alt=media&#x26;token=e6098cd2-fb81-453c-a839-3a6873d2a660" alt=""><figcaption></figcaption></figure>

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).&#x20;

You can also set your mega menu to be opened by default (home page only).

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FlniMzw4MdnZ1c1FnOWUH%2Fimage.png?alt=media&#x26;token=3780a996-aafd-4edf-822c-d6a0fb8abbac" alt=""><figcaption></figcaption></figure>

### Add mega menu for desktop view

#### 1. Inspect your Mega menu element to get the menu ID

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:

```
<mega menu class .. 
```

Expand that code:

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FNedlvqkhhaeq4wHk3VM8%2Fimage.png?alt=media&#x26;token=326eb982-ad80-452d-83e5-50755ebccf01" alt=""><figcaption></figcaption></figure>

In the nested code lines, find the one that starts with \<div class="m-megamenu\_ ...

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FCqygcwrv164HwMi4lQAr%2Fimage.png?alt=media&#x26;token=7e4d13ea-4166-41f9-8921-e731643adaaa" alt=""><figcaption></figcaption></figure>

Expand it and copy the mega menu id:<br>

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F9AQANqqcrKGGtgeEFdR8%2Fimage.png?alt=media&#x26;token=a938d185-b480-460d-8c8f-4a22cd2f8797" alt=""><figcaption></figcaption></figure>

This is an example of the ID you need to copy: m-megamenu-desktop-sections--15228110667818\_\_729ed7ff-cd70-41ab-97b7-db284c5764d5

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F3rG5GaQFpBjSrShf5vYV%2Fezgif.com-video-to-gif.gif?alt=media&#x26;token=e841101d-6a6c-4ffc-8f7f-1ee1dd3930c5" alt=""><figcaption></figcaption></figure>

#### 2. Add the menu ID to FoxKit Mega menus

Once you have got your mega menu ID, go to FoxKit app > Mega menus to add it as the menu's CSS selector:

{% hint style="success" %}
**Steps:**

1. From **FoxKit** app, go to **Mega menus**
2. Select the menu you want to add to the theme
3. Click **Settings**&#x20;
4. Set the **Render method** as **Replace CSS selector**
5. In the field **CSS selector**, insert: # + the ID you have copied earlier

For example: #m-megamenu-desktop-sections--15228110667818\_\_729ed7ff-cd70-41ab-97b7-db284c5764d5

6. Click **Save**.
   {% endhint %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F2LmjEB86W3G4FBH2BNyK%2Fimage.png?alt=media&#x26;token=7ffe1bfa-2bf7-4adb-8f93-466233f8b664" alt=""><figcaption></figcaption></figure>

### Add mega menu for mobile view

#### 1. Inspect your Mega menu element to get the menu id

Change the theme editor to mobile view using the device selector.

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2F45U8Ky7KzdYl30NktsWI%2Fimage.png?alt=media&#x26;token=02562af6-d13c-4c7a-bf6d-b47d31e93b0f" alt=""><figcaption></figcaption></figure>

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:

```
<header-dropdown-menu class ...
```

Expand that code:

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FXvuoYt4XtAFa9hVnvPes%2Fimage.png?alt=media&#x26;token=716ba980-1b31-4741-ac26-9b58aa3d85b4" alt=""><figcaption></figcaption></figure>

And copy the menu ID:

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2Fi9A4IfI2IxxoMaX5oZS3%2Fimage.png?alt=media&#x26;token=d80f4395-1f7c-4397-9cd1-1756187a99bf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FVC5u13v1642SrMUY2RmW%2Fezgif.com-video-to-gif%20(1).gif?alt=media&#x26;token=0c26fe3d-068e-4395-866f-09473ff011d0" alt=""><figcaption></figcaption></figure>

#### 2. Add the menu ID for the mobile view to FoxKit Mega menus

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.

{% hint style="success" %}
**Steps:**

1. From **FoxKit** app, go to **Mega menus**
2. Select the menu you want to add to the theme
3. Click **Settings**&#x20;
4. Set the **Render method** as **Replace CSS selector**
5. 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

6. Click **Save**.
   {% endhint %}

<figure><img src="https://720269760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSnkJrgCgnPuM88XGWwwm%2Fuploads%2FLMlJiKyP0J7MkNZbHNUN%2Fimage.png?alt=media&#x26;token=d3af78cc-0f04-4cc3-9adf-578f0a191db3" alt=""><figcaption></figcaption></figure>

ET VOILÀ! ✨ Your mega menu is ready.

Refresh your store to check.&#x20;
