Sub menu is hidden in mobile
-
Hi there,
mobile device the menu doesnt open up. on inspecting i can see the sub menu is displayed somewhere behind.
Not sure if its because of display:none. I havent touched the backend code.
This is the code in header.php
<nav id=’cssmenu’ class=”navigation submenu”>
<div id=”head-mobile”></div>
<div class=”button”></div>
<?php $defaults = array(
‘menu’ => ‘main-menu’,
‘theme_location’ => ”,
‘container’ =>’nav’,
‘container_class’ =>’navigation navclassnew’,
‘container_id’ =>’cssmenu’,
‘menu_class’ => ”,
‘echo’ => true,
‘fallback_cb’ => ‘wp_page_menu’,
‘items_wrap’ => ‘<ul id=”%1$s”
class=”sub-menu”>%3$s‘,
‘depth’ => 0,
‘walker’ => ”,
);
wp_nav_menu( $defaults ); ?>Any help much appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Sub menu is hidden in mobile’ is closed to new replies.