Skip to content

Commit

Permalink
Added custom class to taxonomy archives.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Palin committed Aug 15, 2014
1 parent 68beeef commit 5bad88c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/tweaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function inet_body_classes( $classes ) {
$classes[] = 'group-blog';
}

if (is_tax()) {
$classes[] = 'taxonomy-archive';
}

return $classes;
}
add_filter( 'body_class', 'inet_body_classes' );
Expand Down

0 comments on commit 5bad88c

Please sign in to comment.