It should work slick, except that it isn't working. And there aren't many suggestions, even in the issues queue for this sort of thing. There are no errors - the behavior is the same as if the module wasn't enabled and running...

I assume what its supposed to do is essentially keep the top level primary navigation in an "active" status even when the child link is the one thats truly active... which again, in a module would be very slick, but it doesn't seem to be working. Any ideas?

There is talk of a code snippet needing to be added to template.php - but, I do not see that snippet included with the module - is it now automatically added?

There is also talk, in the issues queue, about CSS needing to be fixed. and something like:

li.active-trail a, li a.active 
{ 
color: red;
}

is required.

The only problem is that I'm not sure exactly how I would "customize" that - what part of my CSS I would associate that with, because all on its own, it doesn't do anything, so I'm guessing it needs to be added to one of my other CSS ids or classes, but I'm not quite sure which one.

The css code to get a thick red line to appear on the top level looks like this in my style.css: (www.newcreationwoc.org/v2 to see what I'm talking about).

#navlist a.active {
padding: 0 0 0.3em 0;
background: url('images/active_link.gif') repeat center bottom;
}

Would I do something like this:

#navlist a.active, navlist.active-trail a {
padding: 0 0 0.3em 0;
background: url('images/active_link.gif') repeat center bottom;
}

Or would it go somewhere else, or would the code be completely different? I don't want to play around too much if I'm not headed in the right direction at least....

Thanks..

Josh Mans
New Creation WOC
www.newcreationwoc.org

Comments

my-family’s picture

Title: Can't get it to work... » Example how it could work
Category: support » bug

Thanks for you idea, I used it with a little modification and it works. I added this code into my_theme.css (example - navy color and slightly grey background for active trail item, which is in primary links):

#primary li.active-trail,
#primary li.active-trail a {
color: navy;
background-color: #DEDEDE;
}

I am not sure if it is a best way, but it works (note: "my_theme" is based on Zen Classic).
Eva

sun’s picture

Status: Active » Closed (duplicate)