Skip to content

Add active class to dropdown menu items for current page #431

Open
@914digital

Description

@914digital

Hey. Thanks for Navwalker. It is a god send. So my issue:

With the release of the new Bootstrap 4, the dropdowns don't have an li class for current_page_item like on parent items. Is there any way to add an active class to a submenu item on click? I've messed around with some jQuery. The issue: If the page is refreshed, it loses the active class.

Again, thanks for making this available to everyone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [TYPE] BUGAn issue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions