WebsiteBaker Support (2.8.x) > Templates, Menus & Design
current menu item CSS
(1/1)
shadowness:
hello everyone,
i've got a question... i can't figure it out the solution to my problem.
my layout has a Tab menu powered with CSS and showmenu2... every time a link is clicked it shows a new page... and i would like to "mark" that menu item with css!
I mean... imagine a tab system... once you click on your choice... that link is highlighted to show which tab you are seeing. Thats what i want to do...
My menu:
show_menu2(1, SM2_ROOT+1, SM2_START);
The way i highlight:
<li class="current_page_item"> LINK </li>
I found some info on http://code.jellycan.com/sm2test/ by i'm kind lost.... :)
I would be very thankfull if you can help me!
Thanks :)
Bennie_wijs:
Code is:
--- Code: --- <LI class=menu-current>
--- End code ---
This is the class that showmenu2 set for current menu item
shadowness:
hummm... and for example, how can i apply a <b> tag to current menu title??? i mean, click on "about us", after the page loads i would like a <b> tag in the menu...
the way i show the menu is: show_menu2(1, SM2_ROOT+1, SM2_START);
The code goes like this???
show_menu2(1, SM2_ROOT+1, SM2_START, ' <LI class=menu-current>[a][menu_title]</a>', '</li>');
ty
shadowness:
oh!!!!!!!!! ok.... i figure it out!!!!!!!!!!! :) it's working now many many many thanks! :)
Navigation
[0] Message Index
Go to full version