wp_nav_menu add a parent class
-
Hi everyone,
I’m playing with the [not so] new wp_nav_menu() and I like it. Only problem is I get no special class for menu items that have children items. Not sure I was clear enough, so here is an example:
|-Item 1 |-Item 2 |-Subitem 2.1 |-Subitem 2.2 |-Item 3
I just want some class for the “Item 2” because it has subitems. I looked at the Walker class, but I haven’t been able to figure out a way to achieve this behaviour, Not sure it’s posible.
Is there a way to get this?
Thank you.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wp_nav_menu add a parent class’ is closed to new replies.