Hello folks,
I've attempted to place span tags around my main menu links by using the following code:
function spacecowboy_links__system_main_menu($variables) {
$output = '';
foreach ($variables['links'] as $link) {
$output .= l('<span>'. check_plain($link['title']) .'</span>', $link['href'], $link);
}
return $output;
}
However it outputs like this:
<div id="top-menu-bar">
<a href="/" class="active"><span>Home</span></a>
<a href="/members/signal" title=""><span>Members</span></a>
<a href="/articles" title=""><span>Articles</span></a>
<a href="/performance"><span>Performance</span></a>
<a href="/faq" title=""><span>Faq&#039;s</span></a></div>
The problems I have with this is that it strips out the unordered and list tags (and the menu class names) and the opening and closing tags show up as > and < ...
All I really want is my output like this: