How to get submenu highligthed when selected in submenu?

GK User
Mon May 26, 2014 4:58 pm
I have a submenu, and when selecting an item I would like that submenu item to be active (so that the visitor recognize himself).

Possible to do?
User avatar
Gold Boarder

GK User
Mon May 26, 2014 7:31 pm
Hi,
it should help:
Code: Select all
.gkMenu > ul li div.childcontent li.active a { color: red; }


I tested on my private project 2 days ago.
User avatar
Platinum Boarder

GK User
Mon May 26, 2014 7:35 pm
Pawel F wrote:Hi,
it should help:
Code: Select all
.gkMenu > ul li div.childcontent li.active a { color: red; }


I tested on my private project 2 days ago.


Hmm, this one is not working (placed it in override.css). Any other ideas? :roll:
User avatar
Gold Boarder

GK User
Mon May 26, 2014 8:09 pm
It should be, worked on my website. I have exactly this same template and J! version.
This active subitem was highlight with red color.

You can try to add also inside
outline:1px solid red;


to check this option.

Show me your URL.
User avatar
Platinum Boarder

GK User
Mon May 26, 2014 8:19 pm
Pawel F wrote:It should be, worked on my website. I have exactly this same template and J! version.
This active subitem was highlight with red color.

You can try to add also inside
outline:1px solid red;


to check this option.

Show me your URL.


Still not working. I will send you a PM with the link (as it is not live yet)
User avatar
Gold Boarder

GK User
Mon May 26, 2014 8:23 pm
You forgot to tell me that you are using left menu, not 'top' default one
and you are asking about it :P
User avatar
Platinum Boarder

GK User
Mon May 26, 2014 8:26 pm
This was maybe for you small different but very important for class decision,
so try this:
Code: Select all
.box .menu li li.current a {
    color: red;
}
User avatar
Platinum Boarder

GK User
Mon May 26, 2014 8:28 pm
p.s.
You can delete this
Code: Select all
#gkSidebar {
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.79);
}


from override.css !
User avatar
Platinum Boarder

GK User
Mon May 26, 2014 8:44 pm
Pawel F wrote:p.s.
You can delete this
Code: Select all
#gkSidebar {
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.79);
}


from override.css !



Thank you Pavel for your support and explanation. I got it working now. However .... the highlight feature only works for child nodes, not the top nodes. Can you give it a last glance please?
User avatar
Gold Boarder

GK User
Tue May 27, 2014 9:40 am
Sure check this out:

Code: Select all
.box ul.menu > li.active > a {
    color: blue;
}
User avatar
Platinum Boarder

GK User
Tue May 27, 2014 10:31 am
Pawel F wrote:Sure check this out:

Code: Select all
.box ul.menu > li.active > a {
    color: blue;
}



We are getting closer and closer ;)

Now all works but .... when clicking on a different heading the blue color will not work.
It seems only to work when you have child nodes. How to get it working if you do NOT have child nodes?
User avatar
Gold Boarder

GK User
Tue May 27, 2014 12:57 pm
Brr... please use Firbug tool.
User avatar
Platinum Boarder

GK User
Thu Oct 16, 2014 4:41 pm
Hi,

Good topic! I added

#gkMainMenu .gkMenu > ul li div.childcontent li.active a { color: #ffffff; } to menu.css and the highlights are working for every submenu item...

Any Ideas how I can fix this?

Schermafbeelding 2014-10-16 om 17.41.56.png


link: ess(dot)mountainsolutions(dot)ch
User avatar
Fresh Boarder

GK User
Fri Oct 17, 2014 7:16 pm
User avatar
Platinum Boarder


cron