Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14318 reviews 1707 hosting providers

Questions & Answers

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

0 votes
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>";