Drupal: set active class on primary links menu depending on path or content type
Posted
by benmango
on Stack Overflow
See other posts from Stack Overflow
or by benmango
Published on 2010-06-12T13:53:13Z
Indexed on
2010/06/12
14:13 UTC
Read the original article
Hit count: 227
Hi there,
I have some styling based on the primary links active class. I would like to set the class of a link in the primary links to active (<a class="active"...>
) based on either the content type or the path.
I have already done some research on this but haven't yet seen anything that seems to match my query.
Would be grateful for any help.
Ben
© Stack Overflow or respective owner