Jump to content

Top Menu Display on two or three colums


Recommended Posts

So I have this bunch of items under the top menu heading "Woman" and if you click on it, the top menu displays nicely down but since there are too many items the list expands way down so I was wondering if one can accomodate those items into two or three columns so the list is not that long. 

You can see it in action here and simply rest your mouse on the top menu "Mujer'':

http://tivicr.com/cosmeticos/

Link to comment
Share on other sites

I think the only way to achieve it (that I can think about at the moment) is by editing blocktopmenu.php. At the time it generates subcategories, in generateCategoriesMenu(), have it check for the number of entries. Something like

 

$i = 0;

 

foreach ($categories as $key => $category)
{
..
 
$html .= '</li>'; (this is the last LI)
if($i%5==0)
$html .= '</ul><ul>'; 
}
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...