For example, if I have page nodes with a vocabulary called "issues", which has terms, such as "budget", "education" and "foreign policies", and there's a menu titled "Information", I want to be able to add a class to that menu link for each page, such as "budget-info", "education-info" and "foreign-policies-info", dynamically. I assume I can throw in a JS behavior, but if there's a module that does this so the user can manage the class names assigned to each menu, especially that handles tokens and/or PHP so you can throw in part of the current url, that would be better. Note that I don't want to create a menu from taxonomy terms, but a standard item in the main menu with a custom class name applied which is comprised of a combination of a manually supplied name, and a taxonomy term that comes from current node.


1 Answer 1


You could probably use Field Formatter CSS Class in some form or fashion, that can add a class to the node based on a taxonomy term, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.