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.
https://wp-bootstrap.github.io/wp-bootstrap-navwalker/
GNU General Public License v3.0
3.37k stars 1.94k forks source link

Classes Don't Match Spec -- HOWTO? #491

Closed dan-bailey closed 3 years ago

dan-bailey commented 4 years ago

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: `

`

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.

IanDelMar commented 4 years ago

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?

dan-bailey commented 4 years ago

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.