// functions.php function sp_clean_body_classes( $classes ) { $allowed_classes = [ 'home', 'page-homepage','homepage', 'page-template-landing-page', 'page-template-home', 'page-template-default', 'singular', 'single', 'page', 'archive', ]; return array_intersect( $classes, $allowed_classes ); } add_filter( 'body_class', 'sp_clean_body_classes', 20 );
Warning: Trying to access array offset on null in /home/clients/7f7a8d8eb6e40c50d3548b06c548734d/web/wp-includes/class-wp-query.php on line 3766