Custom post type and body_class: Remove “blog” class
You can use body_class filter to check if you are on your custom post type, and if so then just remove the blog class like this: function remove_blog_from_cpt_classes($classes, $class){ global $post; if ($post->post_type != “products”){ return $classes; }else{ foreach($classes as &$str){ if(strpos($str, “blog”) > -1){ $str = “”; } } } return $classes; } add_filter(“body_class”, … Read more