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

Commit

Permalink
Remove hfeed class from singular pages. See #17
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtakashi committed Nov 12, 2015
1 parent e197107 commit b533864
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions functions.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ function twentysixteen_body_classes( $classes ) {
$classes[] = 'no-sidebar'; $classes[] = 'no-sidebar';
} }


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

return $classes; return $classes;
} }
add_filter( 'body_class', 'twentysixteen_body_classes' ); add_filter( 'body_class', 'twentysixteen_body_classes' );
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</head> </head>


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


Expand Down

0 comments on commit b533864

Please sign in to comment.