Skip to content
This repository was archived by the owner on May 23, 2018. It is now read-only.

Commit b533864

Browse files
committed
Remove hfeed class from singular pages. See #17
1 parent e197107 commit b533864

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

functions.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ function twentysixteen_body_classes( $classes ) {
297297
$classes[] = 'no-sidebar';
298298
}
299299

300+
// Adds a class of hfeed to non-singular pages.
301+
if ( ! is_singular() ) {
302+
$classes[] = 'hfeed';
303+
}
304+
300305
return $classes;
301306
}
302307
add_filter( 'body_class', 'twentysixteen_body_classes' );

header.php

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

2424
<body <?php body_class(); ?>>
25-
<div id="page" class="hfeed site">
25+
<div id="page" class="site">
2626
<div class="site-inner">
2727
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
2828

0 commit comments

Comments
 (0)