How to set up Mega menu vertical

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

Step 1 - Simply, navigate to Appearance Menu
Step 2 - Create a new menu that you want to use do the vertical menu and click Select button
Step 3 - On the right, feel free to drag and drop menu items to organize them
Step 4 – When you are done moving menu items, check a menu location at the bottom of the page and click Save Menu
NOTE: The vertical menu only works to Header Layout 4 and Header Layout 6, to set up the vertical menu please follow these steps:
Go to Appearance → Theme Options → Header and Footer

In addition, you can override a vertical menu for Page or Root Product Categories (Parent = 0)

Our 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:
PHP
function
1
add_filter('nasa_max_depth_vertical_menu','custom_max_depth_menu');
2
3
function custom_max_depth_menu($depth) {
4
5
return 4; // Return max depth menu – Default is 3
6
7
}
8
9
/* ===================== */
Copied!

RESULT

Please change the number here if you want to up any sub-menu levels