Industrial (AnpsThemes)
The following instructions were written based on a clean installation of the Industrial theme and a clean installation of Max Mega Menu.
Step 1
When you enable Max Mega Menu for the Primary Menu, it will not work because the theme’s call to wp_nav_menu does not specify the “theme_location” parameter.
To fix this problem, add the following code to your child theme‘s functions.php file:
1 2 3 4 5 6 7 8 |
function add_theme_location_to_nav_menu_args( $args ) { if ($args['menu_class'] == 'main-menu') { $args['theme_location'] = 'primary'; } return $args; } add_filter("wp_nav_menu_args", "add_theme_location_to_nav_menu_args", 10, 2); |
Step 2
Go to Mega Menu > Menu Themes and set the following values:
- Mobile Menu > Responsive Breakpoint: 1200px (this is the width at which the theme starts displaying a mobile toggle button)
- Mobile Menu > Disable Mobile Toggle: Enabled
- Mega Menus > Panel Width (Outer): .header-wrap