• 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 4 years, 3 months ago by devncp.

    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.