| Remove table from horizontal menu option |
| Joomla 1.5 Web Development - Tutorials | |||
|
Remove table from Horizontal Menu format Question: I want to remove the table related to the horizontal menu layout for any given menu item. How do I do it? Answer: If you do not wish to do that, then open modules > main_menu > legacy.php Around line 380 find: echo '<table width="100%" border="0" cellpadding="0" cellspacing="1">'; if ($spacer_end) { if ($spacer_start) { if ($spacer_end) { echo '</td>'; Remove the echo lines. Or, just remove the table related mark up. Could look like this: if ($spacer_end) { if ($spacer_start) { if ($spacer_end) { Note: Removing as many of the "tables" from the default Joomla 1.5 systems is a good thing as it reduces code bloat. Though, in this case, if you menues are long, using an unordered list could actually increase the code bloat.
|