I would like to add code to a menu by modifying the Joomla mod_mainmenu module in Joomla 1.5 and I just need a standard “list” type menu.
This is the standard output:
<div class="moduletable">
<ul class="menu">
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
</ul>
I want it structured like this:
<div class="moduletable">
<ul class="menu">
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
<li><a href="#"><span>Link</span></a></li>
</ul>
<span class="justify"></span>
As you see, I want to add the span tag with the justify class. I do this is to make my ul menu with floats, justify correctly.
Could someone explain to me what, where and in which file, I need to add the needed code to?
I am also interested in other methodologies to do this without altering the module code if anyone can link me to example of this?
copy the tmpl file of mod_mainmenu to
Copy file from
Joomlaroot => modules => mod_mainmenu => tmpl => default.phptoJoomla Root => templates => yourSelectedTemplate => html => mod_mainmenu => default.phpJust append your code after last line of code in this file.