When viewing my blog in the browser, the body tag (on the index page) has the following class:
On other pages (for this example, a page that pulls in posts that are within the category "project"), the body tag has even more classes:
<body class="archive category category-project category-3">
Both of these are rendered using the following code, contained within the html_header part:
<body <?php body_class(); ?>>
I was wondering whether there was a way in which I could isolate the page descriptive class (1st example - home, 2nd example - category-project) that this command targets and use within the page.