Navbar dropdown not showing up navwalker bootstrap wordpress

i made my own theme and i used the nawalker bootstrap wordpress as my menu, but when i add one dropdown menu name bluenotes its not showing up even to the other page, i have try to put some z-index but when i check it to the other page it’s just not showing up.


here is navwalker wordpress bootstrap code

<nav class="navbar navbar-default" role="navigation" id="nav">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          <a class="navbar-brand" href="<?php echo home_url(); ?>">
                <img src="" class=" img-responsive" alt="logo">
        wp_nav_menu( array(
            'menu'              => 'primary',
            'theme_location'    => 'primary',
            'depth'             => 2,
            'container'         => 'div',
            'container_class'   => 'collapse navbar-collapse',
            'container_id'      => 'bs-example-navbar-collapse-1',
            'menu_class'        => 'nav navbar-nav',
            'fallback_cb'       => 'WP_Bootstrap_Navwalker::fallback',
            'walker'            => new WP_Bootstrap_Navwalker())
        <div class="pull-right" id="searchbar">
            <?php dynamic_sidebar( 'top-menu' ); ?>

you can visit my site if you wish so that you can see if its working.

Read more here: Navbar dropdown not showing up navwalker bootstrap wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *