Enter your keyword

Blog

Remove Particular Body Class in WordPress

add_filter('body_class', 'remove_body_class', 20, 2);
function remove_body_class($wp_classes)
    {
        foreach($wp_classes as $key =--> $value)
            {
                if ($value == 'right-sidebar') unset($wp_classes[$key]);
            }
        return $wp_classes;
    }

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.