On a PSD to Thesis project I’m working on, the client wants a different logo on the blog pages (the blog index, single posts, archives, categories, etc.) to the one on the normal WordPress Pages.
By default, Thesis’ body class for the blog pages is simply ‘custom’, which doesn’t really help anyone. But by adding a few lines of code to your custom_functions.php file, you can style these pages any way you want. Here’s what you need:
// ---------------------------------------------
// Add a body class to the blog
// ---------------------------------------------
function custom_thesis_body_class($classes) {
if ( is_single() || is_home() || is_category() || is_archive() ) {
$classes[] = "blog";
}
return $classes;
}
add_filter("thesis_body_classes","custom_thesis_body_class");
Once you’ve uploaded your changes, take a look at the source of your blog pages and you’ll see the body class has been appended to ‘custom blog’. Now all you need to do is call the correct class in your custom.css file and Hey Presto! you’ve got a different logo on your blog pages. For example:
body.blog #logo {
...styles go here...
}
Obviously this isn’t limited to logos. You can use the blog class to style anything on the page that needs to be different/excluded from other pages.
As with most features in Thesis, it’s the little things that can make all the difference to the look of your site. Enjoy.


Hello, I’m Dave. I work with web design agencies, freelancers and bloggers to develop standards-compliant WordPress and Thesis themes.