Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Sub menu is hidden in mobile

$
0
0

Replies: 0

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!

  • This topic was modified 13 minutes ago by devncp.

Viewing all articles
Browse latest Browse all 59525

Trending Articles