I’m working on customizing the menu on a wordpress theme. I need css span to be applied inside the link. This works fine for normal links but for links from wp_list_pages it messes up the css.
<li><?php wp_list_pages('title_li='); ?></li>
The CSS shows up fine with the link “Title” but shows up incorrect for wp_list_pages.
Is there any way around this? Can I somehow edit the html around wp_list_pages to include span?