forked from mirror/_s
Merge pull request #820 from sixhours/master
Remove hfeed from header.php, add to body_class filter. See #740
This commit is contained in:
commit
7c2d3ce6eb
|
@ -21,7 +21,7 @@
|
|||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="page" class="hfeed site">
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
|
|
|
@ -19,6 +19,11 @@ function _s_body_classes( $classes ) {
|
|||
$classes[] = 'group-blog';
|
||||
}
|
||||
|
||||
// Adds a class of hfeed to non-singular pages.
|
||||
if ( ! is_singular() ) {
|
||||
$classes[] = 'hfeed';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', '_s_body_classes' );
|
||||
|
|
Reference in New Issue