I need to change the background color of the LI element in my main menu when the menu item is active, but AT does not add the class "active" to my LI elements, only to the a tag.

When I test a default theme, the active class is added to the LI element correctly.

In AT v6 there are many options for additional css to be included, but in v7 there's hardly any - or am I not looking in the right place ? Adaptive Theme - Settings - CSS Classes

CommentFileSizeAuthor
#2 screenshoot_firebug_activeLI.png103.65 KBjuliekj

Comments

Jeff Burnz’s picture

I do not understand your question.

juliekj’s picture

StatusFileSize
new103.65 KB

Attached screen shots from Firebug

In Adaptive Theme only the anchor (a) gets class="active"

But I need that class to also be attached to the list items (li) , as seen in the Bartik Theme

juliekj’s picture

Status: Active » Fixed

I worked around it.

Created my own menu, and hid the default main menu.

On my created menu, the tag "active-trail" appeared as expected on li element as well as anchor.

Jeff Burnz’s picture

Status: Fixed » Closed (works as designed)

Apples and oranges mate, in AT your are using a Block, in Bartik you are using the Main menu variable - in AT you can use either - you were using two different options and trying to compare them.

So you could just use the normal Drupal Main Menu in AT.