# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elessi-docs.nasatheme.com/header-and-menu/menus/config-mega-menu/how-to-set-up-mega-menu-vertical.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
