wp-bootstrap / wp-bootstrap-navwalker

A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.

Home Page:https://wp-bootstrap.github.io/wp-bootstrap-navwalker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classes Don't Match Spec -- HOWTO?

dan-bailey opened this issue · comments

Steps to reproduce the issue:

Followed instructions for installation of Nav Walker.

What I expected:

The code that I have in my mockups looks like this:
`




  • About


  • Services


  • Blog
  • <!-- Dropdown -->
    <li class="nav-item nav-dropdown">
        <a class="nav-link" href="#">Contact</a>
        <ul class="dropdown-menu">
            <li><a href="contact.html">Contact Info</a></li>
            <li><a href="contact.html">Book Appointment</a></li>
        </ul>
    </li>
    
`

What happened instead:

What's being generated is:
`

`

I was expecting to have the LI tags to have a class of "nav-item" instead of "menu-item", the A tags to have a class of "nav-link", and the submenu UL tag to have the class of "dropdown-menu"...

I suspect I'm overlooking something in the documentation here.

I suspect I'm overlooking something in the documentation here.

That's my guess too but it's hard to tell without further information. Can you provide the code used to register the nav menu and the code used to display the nav menu?

Hey, thanks for jumping in on this. You can close out my item -- I was able to dig up an example of your code in use on another theme and figure out where my issue was.