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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

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

Author Topic: Show_menu2 question  (Read 5036 times)

Offline acdc1

  • Posts: 24
Show_menu2 question
« on: August 23, 2012, 06:06:00 PM »
Hi everyone!

I'm making a site on WB and have some troubles with Show_menu2 & CSS styling
 I have a menu root something like this:

Women
-- Spring-summer
------Top wear
-- Autumn-Winter
------Top wear

Men
-- Spring-summer
------Top wear
-- Autumn-Winter
------Top wear

Each level of the menu displayed in different places and have different styles on site.

Level2 menu  (Spring-summer and Autumn-winter) must be displayed as a pictures (buttons with picture).  I don't understand how style active (current) link of this 2nd level in CSS correctly using show_menu2 classes.

What I mean.. When we open the site, "Women=>Spring-summer=>Top wear" is default location

"Spring-summer" is a picture-button here and it must be highlighted (also must be highlighted "women" and "top-wear" according to current menu chain) and when we go to "Women=>Autumn-Winter=>Top wear" , "spring-summer picture-button" must became dark and "autumn-winter" pic-button must be highlighted because now it's became  a part of current menu-chain  

How can I style this level2 as pictures using show_menu2 classes? (level1 and level3 is a ordinary menu links and it's no problem to style it)
Please help! Can't solve it

Hope someone understand my writings, sorry for my english )

Thanx !
« Last Edit: August 24, 2012, 01:04:26 AM by acdc1 »
Logged

Offline marmot

  • Posts: 1103
Re: Show_menu2 question
« Reply #1 on: August 28, 2012, 10:52:12 PM »
Hi,

there are some hints for using a picture as menu item:
https://forum.WebsiteBaker.org/index.php/topic,19405.0.html
https://forum.WebsiteBaker.org/index.php/topic,21144.0.html
https://forum.WebsiteBaker.org/index.php/topic,21064.0.html

Regarding the menu path, the only thing I can imagine at the moment is using javascript for identifying the parents of the active menu item. There is a [parent] in SM2 also, but there is no way to find out the granny id, as far as I know.

Of course there is SM2_CRUMB, but I don't see an easy way how to use this for finding out the path in your menu structure.

regards
Logged

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

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