WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Show active state for both main and sub menu at the same time?

<< < (2/2)

JonH:
I have to use 2 different menus as the submenu is in a sidebar and the mainmenu is a basic horisontal menu at the top. How do I show active state in both?

Edit: I found the solution here: https://forum.WebsiteBaker.org/index.php?topic=13577.0;wap2


--- Code: ---<?php show_menu2(1, SM2_ROOT+1, SM2_START); ?>
--- End code ---
and then style .menu-parent

sparkdigital:
Thanks John,

This should work - in the top level it gives me the class menu_parent to style as the menu current and in the child level it gives me another menu_current. Thanks for the link!

Konrad

sparkdigital:
Sorted! Looking at the example on http://soeder-architekten.de and the CSS sheet that goes with it really helped - all done now, thanks for all your input!

K

Navigation

[0] Message Index

[*] Previous page

Go to full version