Last active
December 21, 2015 22:09
-
-
Save codeforkjeff/6373527 to your computer and use it in GitHub Desktop.
twentytwelve-jeff child theme: functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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