Add 'active' class to parent of parent in wp_nav_menu
-
Hello
When I open a post of category I want to add “active” class to ancestor of active menu item
Here is an image what I need Open to show screenshotAnd its very important to make it by PHP, not jQuery
One user on stackoverflow said me that it’s possible to make through custom menu walker but all attempts to create function by itselt are falls downMaybe anyone was faced to this problem or you have any suggestion?
- The topic ‘Add 'active' class to parent of parent in wp_nav_menu’ is closed to new replies.