With Advanced Forum on Drupal 7, how can I apply different styles to different forum posts, depending upon which forum they are in? Although I can see how to style different forums, there doesn't seem to be any way of using a different style per post depending upon the forum it is in, as there is no CSS class added denoting the posts forum.

1 Answer 1


On further investigation I believe this can be done with a combination of assigning a path to a post via pathauto, and the Context module, which can add CSS depending on the path.

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.