Giorgiosaud / bootstrapNavWalker

Nav Walker
4 stars 1 forks source link

Working with Bootstrap 4? #1

Open MikeiLL opened 8 years ago

MikeiLL commented 8 years ago

Hey and gracias por esto.

The src file here doesn't seem to be working quite right with Bootstrap 4 (bootstrap@4.0.0-alpha.4).

Output Bootstrap wants is like

<ul class="nav navbar-nav">
    <li class="nav-item"><a class="nav-link" href="#">Link 1</a></li>

    <li class="nav-item"><a class="nav-link" href="#">Link 2</a></li>

    <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button"
        aria-haspopup="true" aria-expanded="false">Dropdown</a>

        <div class="dropdown-menu" aria-labelledby="Preview">
            <a class="dropdown-item" href="#">Dropdown Link 1</a> <a class="dropdown-item"
            href="#">Dropdown Link 2</a> <a class="dropdown-item" href="#">Dropdown Link
            3</a>
        </div>
    </li>
</ul>

But the class is generating

<ul id="menu-teccli" class="nav navbar-nav">
    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1388">
    <a href="#">View Dev Details</a>

        <ul class="sub-menu"></ul>
    </li>

    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1389">
    <a href="#">Latest Articles,
    Thoughts &amp; Stories</a></li>

    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1390">
    <a href="#">Hello Three Worlds</a></li>
</ul>
solosik commented 7 years ago

@giorgiosaud Thank you for this class, Unfortunately your script seems as not up to date, could you please upload your recent version.

Also please let us know if are you going to fix these issues with Bootstrap 4?

Thank you in advance.