Within Wordpress header.php, I have
>
How do check to see if a specific class exists, and th
If you really, really need to use different markup based on the body_class classes, then use get_body_class
$classes = get_body_class();
if (in_array('home',$classes)) {
// your markup
} else {
// some other markup
}
But there are probably better ways to do this, like @Rob's suggestion of Conditional Tags. Those map pretty closely to the classes used by body_class.