0
<ul id="menu-primary">
    <li></li>
    <li></li>
    <li></li>
    <span></span> /* Add after the list items; before the closing </ul> tag */
</ul>

How to add <span> tags after the list items, to the WP-menu with id="menu-primary"?

EDIT

<ul id="menu-primary">
    <li></li>
    <li></li>
    <li></li><li class="fix"></li> /* Add <li class="fix"></li> adjacent after the list items exactly as shown. */
</ul>
Sunny
  • 2,232
  • 7
  • 24
  • 36
  • 2
    span tag is not allowed inside the ul tag: http://stackoverflow.com/questions/6056142/is-anything-except-lis-allowed-in-a-ul – steven Sep 06 '13 at 11:58
  • You're right. It seems to work but I guess I shouldn't mess around with it. – Sunny Sep 06 '13 at 12:12
  • You need a custom walker to modify the menu but obviously with valid markup, here is a [tutorial about this](http://www.kriesi.at/archives/improve-your-wordpress-navigation-menu-output/). – The Alpha Sep 06 '13 at 12:26

1 Answers1

0

Why don't you create a class for the li ?

<ul id="menu-primary">
    <li class ="class"></li>
    <li class ="class"></li>
    <li class ="class"></li>
/* Add after the list items; before the closing </ul> tag */
</ul>
Bradly Spicer
  • 2,278
  • 5
  • 24
  • 34
  • I'm trying to fix a little quirk similar to the first answer in this question (read at the very end): http://stackoverflow.com/questions/6865194/fluid-width-with-equally-spaced-divs/6880421#6880421 – Sunny Sep 06 '13 at 12:48