Edit menu structure, customize wp_nav_menu
-
I have a wordpress theme for mobile. In mobile menu I have a list, I want that the user can click inside the
<li>
container to go to the page and not necessary to the text label.
So I want a menu with this structure:<ul> <a href="$item->url"><li ...>element</li></a> </ul>
How I can do that, so how to customize wp_nav_menu to edit display structure of elements inside menu?
I know there is the Walker attribute for wp_nav_menu, I tried that but do not know how to use that.
Can someone give me some examples?Thanks
Valentina
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Edit menu structure, customize wp_nav_menu’ is closed to new replies.