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>
|
</head>
|
||||||
|
|
||||||
<body <?php body_class(); ?>>
|
<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>
|
<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">
|
<header id="masthead" class="site-header" role="banner">
|
||||||
|
|
|
@ -18,6 +18,11 @@ function _s_body_classes( $classes ) {
|
||||||
if ( is_multi_author() ) {
|
if ( is_multi_author() ) {
|
||||||
$classes[] = 'group-blog';
|
$classes[] = 'group-blog';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adds a class of hfeed to non-singular pages.
|
||||||
|
if ( ! is_singular() ) {
|
||||||
|
$classes[] = 'hfeed';
|
||||||
|
}
|
||||||
|
|
||||||
return $classes;
|
return $classes;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue