> For the complete documentation index, see [llms.txt](https://elessi-docs.nasatheme.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elessi-docs.nasatheme.com/header-and-menu/menus/config-mega-menu/how-to-set-up-mega-menu-vertical.md).

# How to set up Mega menu vertical

![](/files/DdWTi0eRhFXDBp4196P5)

### Here is the instruction you can follow if you desire to set up a menu vertical for your site:

<mark style="color:blue;">**Step 1**</mark> - Simply, navigate to **Appearance** **→** **Menu**

<mark style="color:blue;">**Step 2**</mark> - Create a new menu that you want to use do the **vertical menu** and click Select button

<mark style="color:blue;">**Step 3**</mark> - On the right, feel free to drag and drop menu items to organize them

![](/files/4evKlbkPqrZFK4rLIkzZ)

<mark style="color:blue;">**Step 4**</mark> – When you are done moving menu items, check a menu location at the bottom of the page and click **Save Menu**

![](/files/k7UtVHqNtXwfOS8kSisQ)

{% hint style="warning" %}
**NOTE:** The vertical menu only works to <mark style="color:green;">**Header Layout 4**</mark> and <mark style="color:green;">**Header Layout 6**</mark>, to set up the vertical menu please follow these steps:
{% endhint %}

Go to **Appearance** **→ Theme Options → Header and Footer**

![](/files/eK1atODkpU6mS0Z9xZyW)

#### <mark style="color:red;">**Elessi**</mark>**&#x20;theme is designed by default with 3 levels of sub-menu, if you want to display sub-menu with 4 levels , please insert the following code in / wp-content / themes / elessi-theme-child / functions .php:**

{% tabs %}
{% tab title="PHP" %}
{% code title="function" %}

```php
add_filter('nasa_max_depth_vertical_menu','custom_max_depth_menu');

function custom_max_depth_menu($depth) {

return 4; // Return max depth menu – Default is 3

}

/* ===================== */
```

{% endcode %}
{% endtab %}
{% endtabs %}

### <mark style="color:red;">RESULT</mark>

![](/files/zBfNEsG8kOeqhazIJZrW)

![Please change the number here if you want to up any sub-menu levels](/files/-MlFfiAfw7ICVY0O-JD0)
