WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • current menu item CSS
  • Print
Pages: [1]   Go Down

Author Topic: current menu item CSS  (Read 9940 times)

shadowness

  • Guest
current menu item CSS
« 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 :)
Logged

Offline Bennie_wijs

  • Posts: 229
  • Gender: Male
  • I believe what I want to Believe.
    • www.www.motortreffen.net
Re: current menu item CSS
« Reply #1 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
Logged
I believe what I want to Believe

shadowness

  • Guest
Re: current menu item CSS
« Reply #2 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
Logged

shadowness

  • Guest
Re: current menu item CSS
« Reply #3 on: January 18, 2008, 03:57:30 PM »
oh!!!!!!!!! ok.... i figure it out!!!!!!!!!!! :) it's working now many many many thanks! :)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • current menu item CSS
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2