WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: shadowness on January 18, 2008, 11:09:01 AM

Title: current menu item CSS
Post by: shadowness on January 18, 2008, 11:09:01 AM
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 :)
Title: Re: current menu item CSS
Post by: Bennie_wijs on January 18, 2008, 01:32:27 PM
Code is:
Code: [Select]
<LI class=menu-current>
This is the class that showmenu2 set for current menu item
Title: Re: current menu item CSS
Post by: shadowness on January 18, 2008, 03:51:35 PM
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
Title: Re: current menu item CSS
Post by: shadowness on January 18, 2008, 03:57:30 PM
oh!!!!!!!!! ok.... i figure it out!!!!!!!!!!! :) it's working now many many many thanks! :)