How to set up Mega menu vertical

Here is the instruction you can follow if you desire to set up a mega menu for your site. Please follow these steps:

Step 1 - Go to the Dashboard > Appearance > Menu
Step 2 - Choose 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
Step 5 – Click Save Menu
NOTE: The vertical menu only works to Header Type 4, to set up the vertical menu please follow these steps:
From Dashboard > Appearance > NasaTheme Options > Header and Footer:
NasaTheme Options > Header and Footer
In addition, you can set a vertical menu of Header Type 4 for individual homepage here:
1
2
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
Last modified 12d ago