Author Topic: Show_menu2 question  (Read 1834 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:

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

-- 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 »

Offline marmot

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

there are some hints for using a picture as menu item:,19405.0.html,21144.0.html,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.