From bb5e314c180012d9c8468abee4082df9c6e64d2a Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 29 Apr 2012 19:30:52 -0600 Subject: [PATCH] Fix duplicate 'home' in body_class --- inc/roots-cleanup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/roots-cleanup.php b/inc/roots-cleanup.php index cace667..5b85cd7 100644 --- a/inc/roots-cleanup.php +++ b/inc/roots-cleanup.php @@ -588,6 +588,10 @@ function roots_body_class() { $cat = get_the_category(); } + if (is_front_page()) { + return; // Avoid duplicate 'home' class when using static front page + } + if(!empty($cat)) { return $cat[0]->slug; } elseif (isset($term->slug)) {