By chadj on
theme_links builds a list of links which marks and adds the 'active' class to the active link. The problem is, this class really needs to be added, not to the [a]..[/a] tag but rather to the surrounding [li] .. [/li] tag in order to apply the sliding door graphics for the active tab.
I've looked at overriding the theme_links code and it does not seem to be responsible for adding the 'active' class to the link.
Has anyone created a sliding door tabs (with active tab marked) in 5.x?
Thanks,
Chadj
Comments
fixed it with a bit of a kludge
I copied the theme_links code over to my template.php theme file and added a line of code to insert the 'active' class into the list item (li) here's the code in case anyone wants to do the same:
Having trouble
Do I need to change anything else to get this to work? My base code is