wordpress - How to hide bootstrap drop down menu on second click in my nav bar? -
i using bootstrap in wordpress custom theme navigation menu not hide after click second time. how resolve problem using bootstrap 3. m using walker drop down menu here code
<?php // loading wordpress custom menu wp_nav_menu( array( 'container_class' => 'nav nav-pills navbar-collapse', 'menu_class' => 'nav navbar-nav', 'menu_id' => 'main-menu', 'walker' => new cwd_wp_bootstrapwp_walker_nav_menu() ) ); ?>
why dont use jquery hide , show drop down menu> drop down menu opens on class "open" might toggle class
<script> $(".your_nav_bar_list_item_class").click(function(){ $(".your_nav_bar_list_item_class").toggleclass("open"); }): </script>
Comments
Post a Comment