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

Fix placement of the .active class for dropdown items & remove dropdown when item has no visible children #530

Open IanDelMar opened 3 years ago

IanDelMar commented 3 years ago

Fixes #431 (misplaced .active class). Fixes dropdown markup on items without children (reported in https://github.com/wp-bootstrap/wp-bootstrap-navwalker/issues/517#issuecomment-909436992).

Changes proposed in this Pull Request:

Proposed changelog entry for your changes:

Fix misplaced .active class Remove dropdown markup on items without visible children