The code bellow is how the <body> element should look like in your theme (located in header.php).
<body <?php body_class(); ?>>
So, since you can’t simply put another class=’your classes’ to the <body> here is a way to add more classes to the body_class() function. The code bellow goes to your functions.php file located in your theme folder.
add_filter('body_class','additional_body_classes');
function additional_body_classes($classes) {
$classes[] = 'class-i-need';
$classes[] = 'another-additional-class';
$classes[] = 'third-class';
return $classes;
}
If you want to read more about body_class() you can take a look at this (quite old) post by wpengineer.com
Our WordPress themes
We have a few WordPress themes that we would like you to take a look at if you want.
check out the portfolio











What you suggest is useful, but the easiest way to add body classes is just by adding them as an argument, like this:
body_class(‘myclass my-other-class’);
I agree with Daniel, i guess this was meant for older wordpress versions?