| Project: | Menu Trail By Path |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
apparently, when I use this module with my installation of drupal (ad_novus fluid theme), only the list element adopts the class "active" and not the link itself within the active list element. With the list element I mean the html tags
that contain the menu link. This is a problem for my theme, as normally an active link changes differently than the list element it is in.
A screenshot of the problem you can see in attachment 1. (where only the containing list element has the class "active", therefore only that part changes, and not the link in it)
The result of the solution is visible in attachment 2.
How did I solve this?
I needed to "tell" the theme that every link within an active list element should change as well (and in another way).
I did this through css:
#primary li.active a {
background: url('images/active-menu-r.png') no-repeat right top;
color: #000000;
}Normally, the theme ad_novus expected all active links to have the "active" class:
#primary a.active {
background: url('images/active-menu-r.png') no-repeat right top;
color: #000000;
}This could be solved immediately by adding the class "active" to an active link too, and not only to the containing active list element. Though, the default drupal installation (so without this module) adds a class "active" directly to the active link.
Is this a general problem or does it have to do with my installation of drupal? The fact that the class "active" doesn't get added to the active link itself is not a theming issue I think, but a core issue.
| Attachment | Size |
|---|---|
| Capture1.JPG | 14.36 KB |
| Capture2.JPG | 15.04 KB |