i'm making my own theme at the moment, but i ran into a slight problem.
After i changed the colors for my menu links, the "selected" menu (the menu i'm in) becomes black (by default, i do not have any codes to make it black).

How would i fix this via CSS? or do i have to fix something in the drupal core? or add php into the template files?
is this the "active primary link" problem that has been talked about for a while?
what is the easiest method to fix this? my goal is to redefine the color of the selected menu in CSS.

THANKS!

Comments

Gessle’s picture

If you are using primary menu:

#primary ul li.active a
{
color: #0000ff;
}

Would this do the trick?

http://drupal.org/project/menutrails is also nice module to check out.

illusionest’s picture

Thanks Gessle! I tried that code but it doesnt seem to work.

EDIT: menutrails took way too long to work out, so i fixed my problem by defining each menu item with multiple classes... did the trick!