Responsive Menu shows behind slider
-
Hi Tom,
I’m really liking the plugin, it is just what we have been looking for, thank you.
I’m aware that I am probably missing a step here and it’s nothing to do with your plugin, but I’ve had to do a fair amount of removing styling from header.php based on the lookshop theme I am using. I was left with two duplicate lines, which I have now got working as I need. The only glitch still is that in Mobile view when the responsive menu is triggered, the menu goes behind my slider.
When I was using the code below with the duplicate menu lines, the mobile menu pushed down the slider so the whole menu was visible (below). Now that I have removed the code, as per the test site, the slider no longer moves and the mobile mega menu hides behind the slider.
The site is: testing.moonkids.ae
<div class="grid_7 menu-container header_container"> <div id="container"> <?php wp_nav_menu( array( 'theme_location' => 'header_menu', 'menu_class' => 'nav-menu')); ?> </div> <script> if (document.documentElement.clientWidth > 470) { try{ ddsmoothmenu.init({ mainmenuid: "smoothmenu1", orientation: 'h', classname: 'ddsmoothmenu', contentsource: "markup" }); } catch(error){ if (window.console) { console.log(error) } } } </script> <?php wp_nav_menu( array( 'theme_location' => 'header_menu', 'menu_class' => 'nav-menu')); ?> <script> jQuery('#responsive_main_menu').click(function(){ jQuery('#responsive_main_menu .menu').toggle(); }); </script> <div class="clear"></div> </div> </div> </div> <div class="clear"></div> </header>
For ease, this is my code on the site now:
<div class="grid_7 menu-container header_container"> <div id="container"> <?php wp_nav_menu( array( 'theme_location' => 'header_menu', 'menu_class' => 'nav-menu')); ?> </div> <div class="clear"></div> </div> </div> </div> <div class="clear"></div> </header>
Can you help me make the mobile menu appear on top of the slider please?
Thank you for your time.
- The topic ‘Responsive Menu shows behind slider’ is closed to new replies.