Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 7c2d3ce

Browse files
committed
Merge pull request #820 from sixhours/master
Remove hfeed from header.php, add to body_class filter. See #740
2 parents cd883e9 + 3e8580d commit 7c2d3ce

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</head>
2222

2323
<body <?php body_class(); ?>>
24-
<div id="page" class="hfeed site">
24+
<div id="page" class="site">
2525
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
2626

2727
<header id="masthead" class="site-header" role="banner">

inc/extras.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ function _s_body_classes( $classes ) {
1818
if ( is_multi_author() ) {
1919
$classes[] = 'group-blog';
2020
}
21+
22+
// Adds a class of hfeed to non-singular pages.
23+
if ( ! is_singular() ) {
24+
$classes[] = 'hfeed';
25+
}
2126

2227
return $classes;
2328
}

0 commit comments

Comments
 (0)