WebsiteBaker Support (2.8.x) > Templates, Menus & Design
highlight current page using showmenu2
snark:
--- Code: ---<?php show_menu2(1,SM2_ROOT,SM2_START,'','<li><a href="[url]" class="[class]">[menu_title]</a>','</li>','<ul>','</ul>','',''); ?>
--- End code ---
ivanisevic82:
Thank you very much snark!
It's almost perfect, miss only a thing: I'd like that when I'm in a sub-page (child) the relative mother page stay "on".
So, using my site like example, when I'm in GLASS > PROVA1 I'd like to have the text hilighted not only for PROVA1 but for the mother "GLASS" too.
Is it possibile?
Thanks very much for your support!
snark:
#menu.menu-parent { }
have you tried to read the guides to showmenu2, it all is rather easy to use...
ivanisevic82:
I tried to put it in my css:
--- Code: ---#menu.menu-parent{
color:#f89f05;
text-shadow: 1px 1px 2px #000;
}
--- End code ---
but it doesn't work...
Maybe I've done something wrong?
Thank you again!
ivanisevic82:
Hi find the solution! :-D
<?php show_menu2(0, SM2_ROOT+0, SM2_START+0); ?>
without the long code posted ago...
Thank you!
Navigation
[0] Message Index
[*] Previous page
Go to full version