in the front page, I have displayed multiple nodes (article) in the teaser view, each article has taxonomy.
I want to theme each node teaser according to the taxonomy it has, I think it can be done in the theme_preprocess_html(&$variables, $hook), for example
function theme_preprocess_html(&$variables, $hook) {
if ($variables['is_front']) {
// something here, but I don't know what to do
}
}
the first step is how to find all the nodes in the frontpage, the second is to get the taxonomy of each node, the third is to add the specific css class to each node according to the taxonomy of each node
Does any have suggestions?