I'm trying to add some other classes to my body in order to identify some pages. I've tried adding some classes, but for some reason drupal is not displaying them in the body.
Below is my preprocess_html and the output of $vars['classes_array'] and the actual output in html.
As you can see, only the class I added is not being displayed.
function theme_preprocess_html(&$vars) {
$vars['classes_array'][] = drupal_html_class('page-' . $vars['head_title_array']['title']);
}
// output
array(10) {
[0]=>
string(4) "html"
[1]=>
string(9) "not-front"
[2]=>
string(9) "logged-in"
[3]=>
string(11) "no-sidebars"
[4]=>
string(9) "page-node"
[5]=>
string(10) "page-node-"
[6]=>
string(12) "page-node-41"
[7]=>
string(14) "node-type-page"
[8]=>
string(7) "i18n-en"
[9]=>
string(10) "page-legal"
}
// page output
class="html not-front logged-in page-node page-node- page-node-41 node-type-page i18n-en context-legal omega-mediaqueries-processed admin-menu responsive-layout-normal"