Be Studios

Intercontinental Design Firm

This is our knowledge center. Enjoy!

Add any class to body_class()

This small function adds any class you want to WordPress's _bodyclass(); function. Paste this inside your functions.php and change my_custom_class to any classname you want.

add_filter('body_class','browser_body_class');
function browser_body_class($classes = '') {
    $classes[] = 'my_custom_class';
    return $classes;
}