Need to change the output of wp_nav_menu
-
Hello!
I’ve been searching for a solution for days now, but I just can’t seem to find anything.. I’m working on a new theme, and I need to change the output of wp_nav_menu. I know this is done by creating a custom walker, however I am not familiar enough with PHP to create something like that.
What I need the wp_nav_menu to do, is this:
- Show at least two levels, however, only when the parent element is active.
- Elements from each level needs to be contained within a div, preferably with a corresponding class name. Top-level elements in one div, and child elements in another.
If someone has already written a custom walker to do something like this, or would be kind enough to help me write a new one, that would’ve been awesome! You’d be helping a quite desperate man ??
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need to change the output of wp_nav_menu’ is closed to new replies.