How do you display three level menus in Unite theme?

I have my menu set up like the following:

Menu 1
-Menu 2
–Menu 3

Menu 1 > Menu 2 shows, but nothing happens when hovering over Menu 2 (no Menu 3 items are displayed, no pop up at all)

How do you go three levels deep in the Unite theme?

Thank you!

This theme by default doesn’t support 2 sub menu levels but it is possible to tweak theme to support multiple sub-menu levels.

However here you can find tutorial on how to get this done. This tutorial was originally written for Sparkling theme but since both themes uses the same menu walker it is possible to use similar approach for Unite theme as well. Tutorials is available here.

Actually, I found that already. The problem is, that it references some function “sparkling_header_menu” that needs to be copied from /inc/extras.php to functions.php. However, that function (or anything to the like, eg. unite_header_menu or something like that) does not exist in extras.php. So, the first part of this solution cannot be done because it doesn’t contain the function the solution is mentioning.


See header.php and function that I you can see below. That’s the exact same thing but not wrapped as additional function but is executed directly in header.php

		            wp_nav_menu( array(
		                'theme_location'    => 'primary',
		                'depth'             => 2,
		                'container'         => 'div',
		                'container_class'   => 'collapse navbar-collapse navbar-ex1-collapse',
		                'menu_class'        => 'nav navbar-nav',
		                'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
		                'walker'            => new wp_bootstrap_navwalker())

I copied that into a function named unite_header_menu and added to functions.php and then added the custom css. Does. Not. Work.

Can I get a real solution from someone please? It is pretty inefficient that the menu cannot go three levels. For e-commerce, thats terrible because most places need three levels.

Just switch to Travelify theme instead. Change color scheme to purple (can be done via Wordpress Customizer without writing your own code) or any other and you will get the same design with more flexibility than Unite theme.

It also comes with WooCommerce support, so no problems with that.

Thank you

Yes, I am certain about my answers. However, i see that you have problem with basic menu setup. Please read starter guide here on official documentation. Menus can’t be erased just like that but they just have to be re-enabled as menus are associated with themes and switching between themes removes this links. Menu is still there just enabled it via dashboard.

The solution for this is shared in the following topic.