wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

nav-justified issue

Open voviklenin opened this issue 13 years ago • 2 comments

Hi there is a glitch in mobile button slider, the submenu does drop down but not in smaller window on the left like in standard menu.

Here is jsfiddle result http://jsfiddle.net/voviklenin/Ctw4q/4/

voviklenin avatar Sep 20 '13 23:09 voviklenin

        <div class="row">
            <div class="col-md-12 rempd">
                <nav class="navbar navbar-default navbar-turquoise" role="navigation">
                    <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                    </div>

                    <div class="collapse navbar-collapse navbar-ex1-collapse">
                            <?php
                                wp_nav_menu( array(
                                    'menu'              => 'nav_main',
                                    'theme_location'    => 'nav_main',
                                    'depth'             => 2,
                                    'container'         => false,
                                    'menu_class'        => 'nav nav-justified',
                                    'fallback_cb'       => 'wp_page_menu',
                                    'walker'            => new wp_bootstrap_navwalker())
                                    );        
                            ?>
                    </div><!-- /.navbar-collapse -->
                </nav>
            </div>
        </div>

voviklenin avatar Sep 20 '13 23:09 voviklenin

Hey @voviklenin,

Unfortunately nav-justified is not officially supported when using a navbar. It is only really intended to be used with nav-pills & nav-tabs If you take a look at the official nav-justified example here http://getbootstrap.com/examples/justified-nav/ you will see that this is achived by loading quite a bit of extra CSS outside of the default bootstrap framework and even the offical demo is broken when you try to use it responcivly.

There are quite a few posts about this on the official bootstrap issues and stackoverflow you may want to see if anyone out there has solved this. Since this is not an issues with the walker class I will be closing this issue.

SideQuestDIY avatar Sep 23 '13 15:09 SideQuestDIY