WebsiteBaker Support (2.8.x) > Templates, Menus & Design
SM2: Submenu only visible after clicking topmenu: HOW??
(1/1)
Boudi:
Ok..ok...I feel dumb. I checked the forum, I check the documentation but no way I came up with an answer so here's the deal:
I've got a horizontal SM2 menu:
--- Code: ---
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
When hovering this menu the submenu appears. My client wants the submenu only to appear after clicking the topmenu.
No doubt that there is a simple answer but I couldn't find it.
Solution would be belpfull. :)
Boudi
crnogorac081:
Hi mate,
take a look at this tutorial:
http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
cheers
Edit:
there is even more simple solution for this if it is not dropdown menu, for top menu, you use show_menu2(0,SM2_ROOT, SM2_CURR ......) and then where you want seccond level to appear, show_menu2(0,SM2_ROOT+1, SM2_CURR or sm_all for all levels ......)
Boudi:
yo!
Thnx for responding. The website is almost live so I simply don't have the time for testing new jquery things out.
The only thing for now is editing the SM2 so that the submenu's are only visible after clicking the topmenu.
Your solution though ends up in only showing the toplevel and/or 1 level deep but still the submenu appears on hover.
Boudi
crnogorac081:
Hi mate, send me the link for site on pm, so maybe I can quick take a look for make a fast solution with JQ
Navigation
[0] Message Index
Go to full version