Skip to content

Instantly share code, notes, and snippets.

@codeforkjeff
Last active December 21, 2015 22:09
Show Gist options
  • Save codeforkjeff/6373527 to your computer and use it in GitHub Desktop.
Save codeforkjeff/6373527 to your computer and use it in GitHub Desktop.
twentytwelve-jeff child theme: functions.php
<?php
function twentytwelve_jeff_body_class( $classes ) {
if(isset($_SERVER['HTTP_USER_AGENT'])) {
if(strpos($_SERVER['HTTP_USER_AGENT'], "Chrome") !== false) {
$classes = array_diff($classes, array('custom-font-enabled'));
}
}
return $classes;
}
// priority = 20 makes this filter run after the one in twentytwelve
add_filter( 'body_class', 'twentytwelve_jeff_body_class' , 20 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment