Create (ThemeTrust)
The menu will pick up residual theme styling when Max Mega Menu is enabled.
Copy the header.php file to your Child Theme.
Find:
1 |
<div class="main-nav clearfix"> |
Replace with:
1 |
<div class="main-nav-mmm clearfix"> |
Go to Appearance > Customize > Additional CSS and enter the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
.main-nav-mmm { display: inline-block; } @media only screen and (max-width: 768px){ .nav-holder { float: none; width: 100%; } .main-nav-mmm { display: block; } /* Optional: hide secondary nav on small screens */ .secondary-nav { display: none; } } |
Fix Sticky Header
If you are using the theme Sticky Header option, you will find that sub menus do not open properly when the header is stuck. To fix this, add the following to your child themes functions.php file:
1 2 |
remove_action( 'wp_enqueue_scripts', 'create_scripts_n_styles' ); add_action( 'wp_enqueue_scripts', 'create_scripts_n_styles', 99 ); // ensure theme scripts are loaded before Max Mega Menu scripts |