I'm amending a filter I'd seen Chris had posted elsewhere in the forum: http://themeshaper.com/forums/topic/how-to-add-a-class-to-the-ltbodygt-declaration
I'm trying to adapt it to do the following:
1. If the page is a forum (bbpress) page - add the class 'bbforum' to the body
2. If it isn't a forum page - leave the dynamic classes as they were before
Here's what I have in functions.php:
function extend_body_class($c) {
if (function_exists('is_bbpress') && is_bbpress()) {
$c[] = 'bbForum';
return $c;
}
}
add_filter('thematic_body_class', 'extend_body_class');
Which works fine on the forum pages, however, on other pages it is truncating the dynamic classes. What do I need to change to stop it doing that????