current active menu item

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Feb 19, 2013 3:39 pm
Reply with quote
Report this post
Hello, I would like te give the current active menu item a color. I'm using the menu module with the "dark" suffix and I can't seem to do this with CSS. Which line should I be looking for?
User avatar
Gold Boarder

Konrad M
Tue Feb 19, 2013 4:35 pm
Reply with quote
Report this post
Hi,
can you give us url to your site ?
User avatar

GK User
Wed Feb 20, 2013 9:30 am
Reply with quote
Report this post
http://intellipack.hisslink.nl/
It's the left menu (Home, Over Willems, etc.)
User avatar
Gold Boarder

Konrad M
Wed Feb 20, 2013 9:51 am
Reply with quote
Report this post
Try add to override.css
Code: Select all
.box.dark menu li.current a {
color:#ffffff;
}

and set your own color value. Remember to enable override.css option in template settings.
User avatar

GK User
Thu Feb 21, 2013 3:13 pm
Reply with quote
Report this post
This did not help unfortunatly
User avatar
Gold Boarder

Konrad M
Thu Feb 21, 2013 4:32 pm
Reply with quote
Report this post
Change your code to this one:
Code: Select all
.box.dark .menu li.current a {
   color:#418cd0 !important;
}

will work.
User avatar

GK User
Tue Feb 26, 2013 8:49 am
Reply with quote
Report this post
Thanks!
User avatar
Gold Boarder

GK User
Wed Mar 06, 2013 10:39 am
Reply with quote
Report this post
Now the children of the current active item are also changing. How do I exclude these?
User avatar
Gold Boarder

Konrad M
Wed Mar 06, 2013 11:44 am
Reply with quote
Report this post
Try this code:
Code: Select all
.box.dark .menu li.current > a {
   color:#418cd0 !important;
}
User avatar

GK User
Wed Mar 06, 2013 11:47 am
Reply with quote
Report this post
That works, thank you!
User avatar
Gold Boarder


cron