1. Use the nav module position

Assign your main navigation menu module to the NAV module position which is a special module position designed to be used only for the main navigation:

FavThemes tutorial for the main navigation module positions

2. The main navigation on mobile devices

Being responsive, the main navigation adjusts to desktop, tablet and mobile with 3 different layouts. The tablet layout for the main navigation usually stacks the logo and main navigation on top of each other. The mobile layout for the main navigation uses Bootstrap's collapsing navbar and has both a dark and a light version:

FavThemes tutorial for the main navigation mobile menu

If you want the parent mobile menu elements to be collapsible, the parent menus (ex: the "Features" menu, in our demo) should be menu type "Menu heading" or "External URL" with "#" configured as the URL. Otherwise, if you parent menus have actual active URLs assigned to them (internal or external), the URL will be triggered before the menu can have the chance to collapse.

3. Using a mobile menu that's different from the main menu

By default, the mobile menu uses the same content as the main menu on desktop. Since the desktop menu has usually a much more complex content structure than what the mobile navigation can handle, having the option to use two different menus for mobile and desktop can be really helpful.

This is why we created the navmobile module position, which can be used to create a separate menu module that will be active only on mobile and will have its own menu content, different from the one on desktop.

FavThemes tutorial for the main navigation mobile menu

If you want the same menu content on both desktop and mobile, then simply set up the main menu using the nav module position and the mobile navigation will include by default the same menu content as the one for desktop.

The Joomla! name is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries. FavThemes is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.