Drupal 7: add span to Main Menu Title

Add below code to template.php file in your Drupal 7 theme folder /sites/all/themes/zurb/template.php.

[sourcecode language=”php”]
function zurb_links__system_main_menu(&$vars) {
foreach ($vars[‚links’] as &$link) {
// do what you need here…
$link[‚title’] = ‚<span>’ . $link[‚title’] . ‚</span>’;
$link[‚html’] = TRUE;
}
return theme_links($vars);
}
[/sourcecode]