1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
function my_class_names($classes) {
    // add 'class-name' to the $classes array
    if( !is_front_page() ) $classes[] = 'not-front';
    if( is_single() ) $classes[] .= 'et_full_width_page';
 
    if(($key = array_search('et_right_sidebar', $classes)) !== false) {
        unset($classes[$key]);
    }
 
    // return the $classes array
    return $classes;
}
add_filter('body_class','my_class_names');