WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Remove classes from showmenu2
vanbemmel:
Hello,
we use show_menu2 in our WB installation as follows.
show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n", false, false, false, "\n");
But this generates also a lot of extra classes like these:
* menu-current
* menu-first
* menu-expand
* menu-sibling
In our stylesheet we don't use these classes so the menu is not displayed right.
When we change the function "show_menu2" in modules\show_menu2\include.php on line 402 these changes are not visible and seems to be cached.
Who can help us out?
Thank you.
ruebenwurzel:
Hello,
there is no need for changes in the include.php of show_menu2. Please read the docu, wich comes with the modul. You can adapt fully show_menu2 to use your classes. From the first look in your menucall i see that you the parameters with a wrong syntax. So please read the doku, how to set the paramters right.
Matthias
vanbemmel:
Hi Matthias,
thank you for your quick reply. I read the manual three times but cannot find out how we can skip the class parts. We only need the <li> and <ul> output of show_menu2.
Can you help us a bit with this?
ruebenwurzel:
Hello,
all is written in the docu
--- Code: ---show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, <li>[a][menu_title]</a>, </li>, '<ul>', '</ul>');
--- End code ---
gives you only a list without classes
Matthias
vanbemmel:
Hi Matthias,
thank you, it works great this way!
The only thing is that when we click on a submenu only the submenu's at the same level are displayed and not the main menu's. Where can we change that?
Kind regards.
Navigation
[0] Message Index
[#] Next page
Go to full version