How does one "set" the page wrapper class?

Permalink
In our themes we have "c->getPageWrapperClass()".
my question is, how can I either set this or add additional classes to the output class (for the use in page templates).

ob7dev
 
jakobfuchs replied on at Permalink Best Answer Reply
jakobfuchs
I don't think you can (easily) add class names to the output of the function. Best approach IMHO is to create an array with your classes, then implode and echo it on the body element (like it's done in the autonav template).
ob7dev replied on at Permalink Reply
ob7dev
Well that's an idea. I just need to add additional wrapper classes based on the page_template, but do so in the header.php which is loaded across all pages.... LIGHT BULB!

I need this just so I can markup my CSS different based on page template, but my header_top.php holds the main ccm-page wrapper.

What I did is add $c->getPageTemplateHandle() to the same place I echo $c->getPageWrapperClass().
jakobfuchs replied on at Permalink Reply
jakobfuchs
Classes for page templates and page types should be part of the output of the function. Something like page-template-homepage page-type-blog-entry. Sometimes they don't seem to show up for reasons unknown (to me).