Installation & Setup

Knowledgebase Docs » UberMenu 2 » Installation & Setup

UberMenu Direct 1

If you intend to insert UberMenu directly into your theme as your primary menu, so that it won’t need to be activated as an UberMenu in Appearance > Menus, you can do so using the uberMenu_direct function. It is best practice to check for the function’s existence in case the plugin is disabled. This assumes you have already registered a theme location. Replace ‘primary’ with the name of your theme location ID. You can also use the uberMenu_direct shortcode. If you do not already have a theme location to use, you can enable UberMenu Easy Integration in the Control Panel, and then pass ‘ubermenu’ as your theme location. If you need to register new theme locations without adding code, you can check out the Menu Swapper plugin.

View

Installation & Setup 0

This section of the guide will walk you through installing the plugin to WordPress, setting up the menu and configuring your settings, and handling any integration issues that may occur with your theme. Please be sure to read through each subsection below if you run into any issues.

View

If UberMenu replaces your responsive menu but not your main menu 0

With some themes, UberMenu may replace only the theme’s responsive or mobile menu, but the main menu remains unchanged. This happens when the theme calls wp_nav_menu twice with the same theme_location. As a result, UberMenu is only applied to the first instance of the theme location, and if the mobile menu is printed first by the theme, only the mobile menu will be affected. Any changes you make to your theme should be done in a child theme. Generally this just means copying over the header.php and modifying it accordingly. Many themes already include a starter child theme for you. Note that if you just want to use UberMenu as both your main and mobile menu, simply remove the wp_nav_menu call for the mobile menu. UberMenu only needs one instance to be responsive. If you want to maintain your theme’s mobile/responsive menu but use UberMenu as your main menu, the solution is to separate these two menus with two different theme locations. Changing the Theme Location Instance (UberMenu 2.4.0.1) As of UberMenu v2.4.0.1, UberMenu offers a “Theme Location Instance” setting, so you can tell UberMenu to target the second instance of a theme location rather than the first. So if UberMenu is replacing your mobile menu, but you want it to replace your desktop menu, try changing this value to 2 in your Advanced Settings For many cases, this will be all you need to do. However, in certain cases you may need to separate the theme locations manually. Proceed to the next section if this doesn’t work, for example: If you are using multiple UberMenus, this instance value will apply to all of them; so if some of your theme locations need instance 1 and others need instance 2, you’ll need to sort that out via templates (as shown […]

View