Skip to content

Commit

Permalink
Merge pull request #820 from sixhours/master
Browse files Browse the repository at this point in the history
Remove hfeed from header.php, add to body_class filter. See #740
  • Loading branch information
karmatosed committed Nov 11, 2015
2 parents cd883e9 + 3e8580d commit 7c2d3ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
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 7c2d3ce

Please sign in to comment.