From 1f85e9b067b136c61e53b0540bc48e08c1c48b4f Mon Sep 17 00:00:00 2001 From: Caroline Moore Date: Wed, 16 Sep 2015 15:08:02 -0400 Subject: [PATCH] Add 'hfeed' class via body_class * Only add the 'hfeed' class when viewing a non-singular page, such as an index or archive --- inc/extras.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/extras.php b/inc/extras.php index 5503d38d..971d0ba1 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -18,6 +18,11 @@ function _s_body_classes( $classes ) { if ( is_multi_author() ) { $classes[] = 'group-blog'; } + + // Adds a class of hfeed to non-singular pages. + if ( ! is_singular() ) { + $classes[] = 'hfeed'; + } return $classes; }