0

In my node, I have a taxonomy field that displays one or more taxonomy terms (as plain text using DS). I want to wrap a CSS class around the term, depending on the term value.

Where is the best place to do this?

1

I did this in preprocess_taxonomy_term(), and just added to classes_array.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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