forked from mirror/_s
Add 'hfeed' class via body_class
* Only add the 'hfeed' class when viewing a non-singular page, such as an index or archive
This commit is contained in:
parent
b1b13f58d8
commit
1f85e9b067
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue