Skip to content

Commit

Permalink
add IE body class conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Oct 14, 2015
1 parent 94df11c commit 57abfff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
*/
function _s_body_classes( $classes ) {

global $is_IE;

// If it's IE, add a class.
if ( $is_IE ) {
$classes[] = 'ie';
}

// Give all pages a unique class.
if ( is_page() ) {
$classes[] = 'page-' . basename( get_permalink() );
Expand Down

0 comments on commit 57abfff

Please sign in to comment.