Adding a custom class (page type) to the body tag

I would like to add a custom class to the body tag.

Problem is that my body is in the header element. I know how to add a custom class to a specific page:

<body class="<?php echo $c->getCollectionHandle(); ?>">

But this has to be for pre-written styles.

What is the correct call to get the page type name?


View Replies: View Best Answer
dancer replied on at Permalink Best Answer Reply
ANswered my own question when I started to think about it.

For thos who come across this post... look here:
JohntheFish replied on at Permalink Reply

The snip of code at the bottom of the page is your starting point.