My site’s menu uses the built-in menu under Appearance >> Menus. I want to make a very simple change: I want to wrap each of my menu’s second-level ULs in a DIV.
What’s the simplest way to accomplish this?
My site’s menu uses the built-in menu under Appearance >> Menus. I want to make a very simple change: I want to wrap each of my menu’s second-level ULs in a DIV.
What’s the simplest way to accomplish this?
You must be logged in to post a comment.
Use a custom walker. Extend the functions
start_lvl()
andend_lvl()
:Call it in your theme like that: