public
Created — forked from lancewillett/gist:3494374

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Index: wp-content/themes/twentytwelve/style.css
===================================================================
--- wp-content/themes/twentytwelve/style.css (revision 21639)
+++ wp-content/themes/twentytwelve/style.css (working copy)
@@ -437,10 +437,13 @@
body {
font-size: 14px;
font-size: 1rem;
- font-family: "Open Sans", Helvetica, Arial, sans-serif;
+ font-family: Helvetica, Arial, sans-serif;
text-rendering: optimizeLegibility;
color: #444;
}
+body.open-sans {
+ font-family: "Open Sans", Helvetica, Arial, sans-serif;
+}
a {
outline: none;
color: #21759b;
Index: wp-content/themes/twentytwelve/functions.php
===================================================================
--- wp-content/themes/twentytwelve/functions.php (revision 21639)
+++ wp-content/themes/twentytwelve/functions.php (working copy)
@@ -373,6 +373,9 @@
elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) )
$classes[] = 'custom-background-white';
+ if ( wp_script_is( 'twentytwelve-fonts', 'queue' ) )
+ $classes[] = 'open-sans';
+
return $classes;
}
add_filter( 'body_class', 'twentytwelve_body_class' );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.