Joomla 2.5.6 How to get <span> tags before menu items

Aug 22, 2012 by Donald
Hello there,
I want to add <span> tags before my menu items. Does anyone have an idea how to do this?
If so kindly help.
Many thanks

1 Answer

Aug 22, 2012 by JoomAp
You need to edit the file helper.php located at ]/modules/mod_menu/

Find the below line:
$item->title = htmlspecialchars($item->title);
And replace it with this line:
$item->title = "<span><span>".$item->title."</span></span>";
0 votes