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

372 views
asked Aug 22, 2012 in Website Builder by Donald (2,780 points)
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

0 like 0 dislike
answered Aug 22, 2012 by JoomAp (5,660 points)
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>";
...