menu - nav-bar in wordpress is not displayed to mobile devices -
i have create nav bar describe convert bootstrap navbar wordpress menu can see menu in desktop menu not displayed in mobile devices. in mobile devices can see button menu displayed menu not displayed.
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><div class="container"> <!-- brand , toggle grouped better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="nav navbar-nav"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <?php wp_nav_menu( array( 'menu' => 'primary', 'depth' => 2, 'container' => 'div', 'container_class' => 'navbar-collapse collapse', 'menu_class' => 'nav navbar-nav', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker()) ); ?> </div><!-- /.container-fluid -->
Comments
Post a Comment