Skip to content

Commit

Permalink
Add 'hfeed' class via body_class
Browse files Browse the repository at this point in the history
* Only add the 'hfeed' class when viewing a non-singular page, such as an index or archive
  • Loading branch information
sixhours committed Sep 16, 2015
1 parent b1b13f5 commit 1f85e9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f85e9b

Please sign in to comment.