current-menu-ancestor class not showing up in nav menu of mixed type items
-
I’m using
wp_nav_menu
to show a multi-depth menu consisting of different types of items, p.e:- Page
- Custom Taxonomy term archive
- …
- …
- …
When I’m on ‘Page’ the first level item has the class
current-menu-item
as intended.
When on the term archive ‘Page’ has the classcurrent-menu-parent' and the archive menu item
current-menu-item`.
All good so far.When I now visit a post that has the archive’s term assigned the sublevel term menu item has
current-menu-parent
but the ‘Page’ has nocurrent-*
class at all.Is this an intended behavior?
Since it seems a bit illogical to me, is there any fix how to mark the all items of the menu branch with classes if any of its sub items has acurrent-*
class?thx
- The topic ‘current-menu-ancestor class not showing up in nav menu of mixed type items’ is closed to new replies.