Permalink
Browse files

Merge pull request #820 from sixhours/master

Remove hfeed from header.php, add to body_class filter. See #740
  • Loading branch information...
Tammie Lister
Tammie Lister committed Nov 11, 2015
2 parents cd883e9 + 3e8580d commit 7c2d3ce6eb04be290233e1ae3c83580297789e60
Showing with 6 additions and 1 deletion.
  1. +1 −1 header.php
  2. +5 −0 inc/extras.php
View
@@ -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">
View
@@ -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;
}

0 comments on commit 7c2d3ce

Please sign in to comment.