The image swap functionality within Max Mega Menu Pro (v2.2+) allows you to place an image within a sub menu, which is updated with a different image as the user hovers over menu items within the same sub menu. There are two stages to setting up the image swap functionality…
Mega Menu does not display Medactive and Max Mega Menu conflict because they both use a ‘mega-menu’ class. The ‘mega-menu’ class can be safely removed from Max Mega Menu by adding the following to your child themes functions.php file:
Fix Mobile Menu If you have Max Mega Menu enabled for the mobile location, you’ll find clicking on parent item links prematurely closes the mobile slideout panel. To fix this, add the following to your child themes functions.php file:
1
2
3
4
5
6
7
8
9
/** Add 'toggle-caret' class to all menu item links to prevent the theme from closing the mobile menu whenever a link is clicked **/
The mobile menu The built in Kalium mobile menu overrides certain functionality of Max Mega Menu, therefore it is not possible to use Max Mega Menu for your mobile menu. This is possible by ensuring Max Mega Menu remains disabled for the mobile location: Under Mega Menu > Menu Themes…
YooTheme3 In this example we will replace the theme “Navbar” menu location with Max Mega Menu. To display Max Mega Menu in YooTheme3, first go to Mega Menu > Menu Locations and create a new Menu Location. Name the location “Max Mega Menu Navbar”. Next go to Appearance > Menus….
By default, when the page background is clicked, any open sub menus will be automatically closed. To prevent this behaviour (and keep sub menus open), add the following to your themes functions.php file:
When using AdForest you will find that Max Mega Menu is not correctly applied to the menu. To allow Max Mega Menu to work correctly, copy the
template-parts/layouts/main-nav.php file (keeping the directory structure intact) to your Child Theme, and replace the contents of that file with:
Fix Mobile Menu To hide the default mobile menu, and show the Max Mega Menu mobile menu instead, go to Mega Menu > Menu Themes > Mobile Menu and set the Responsive Breakpoint to 992px. Next, go to Mega Menu > Menu Themes > Custom Styling and add the following:…