While working on a custom bootstrap subtheme in Drupal, I needed to include specific classes in the body tag.
There are two different cases that I needed to take into consideration, one for nodes and one for custom paths generated by e.g. from Views or Taxonomy.
In the first case, I needed the node id to be included as a class, and on the second I needed a class name that was based on the path.
To achieve this, I needed to edit two different files under my subtheme category. You will need to replace themename with the actual name of your theme.
Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.
Order now from:
Managing Expectations Podcast with DrupalEasy
Author Interview http://tinyurl.com/8a8nxno
Since Drupal 4.x
© 2014 Konordo Limited
Drupal Services provider.
All rights reserved.
Reg Nr. 12301661FVAT Nr. CY10301661D
M. Director: Konstantin Ordoulidis