Coder Social home page Coder Social logo

Comments (2)

voviklenin avatar voviklenin commented on May 10, 2024
        <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>

from wp-bootstrap-navwalker.

PlanBrewski avatar PlanBrewski commented on May 10, 2024

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.

from wp-bootstrap-navwalker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.