Change submenu markup

Question

I’ve seen people recommending to edit the wordpress default Walker to change the menu markup and create your own.

The problem with this is that I would like to change the markup of the submenu and leave the menu as it is.

In the walker function I only saw the functions start_lvl and end_lvl regarding the submenu creation.
The functions itself lack of very useful comments… so I understood that lvl means “level” and with that they mean “sub-menu”…

But it doesn’t seem to be any specific function to render the submenus. It seems they use the same one for the parent menu than for the submenu.

Any recommendation?
I would like to create a menu like this and I’m having troubles.

enter image description here

0
Alvaro 2 years 2020-10-24T09:10:21-05:00 0 Answers 13 views 0

Leave an answer

Browse
Browse