Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Remove hfeed class from singular pages. See #17

  • Loading branch information
iamtakashi committed Nov 12, 2015
1 parent e197107 commit b533864871e9d37c5c725d344a1338e94dabbaa9
Showing with 6 additions and 1 deletion.
  1. +5 −0 functions.php
  2. +1 −1 header.php
@@ -297,6 +297,11 @@ function twentysixteen_body_classes( $classes ) {
$classes[] = 'no-sidebar';
}

// Adds a class of hfeed to non-singular pages.
if ( ! is_singular() ) {
$classes[] = 'hfeed';
}

return $classes;
}
add_filter( 'body_class', 'twentysixteen_body_classes' );
@@ -22,7 +22,7 @@
</head>

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

0 comments on commit b533864

Please sign in to comment.
You can’t perform that action at this time.