Trying to customise Roots Nav Walker Menu

My HTML theme requires that the menu structure li is like this:

<li><a href="#"><span>Item</span></a></li>

Whereas the default for the Roots nav output is like this:

<li><a href="#">Item</a></li>

How can I add the spans into the menu?

Not clear on what you mean by “My HTML theme requires…” but what you’re looking for is in lib/nav.php. You may need to create a custom nav walker for that unless you want a hacky solution.

What have you tried?