Ticket #21694: 21694.2.diff
File 21694.2.diff, 1.6 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/style.css
437 437 body { 438 438 font-size: 14px; 439 439 font-size: 1rem; 440 font-family: "Open Sans",Helvetica, Arial, sans-serif;440 font-family: Helvetica, Arial, sans-serif; 441 441 text-rendering: optimizeLegibility; 442 442 color: #444; 443 443 } 444 body.custom-font-enabled { 445 font-family: "Open Sans", Helvetica, Arial, sans-serif; 446 } 444 447 a { 445 448 outline: none; 446 449 color: #21759b; -
wp-content/themes/twentytwelve/functions.php
102 102 103 103 /* 104 104 * Loads our special font CSS file. 105 * 106 * To disable use wp_dequeue_style(): 107 * add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style( 'twentytwelve-fonts' ); }, 11 ); 105 108 */ 106 109 $protocol = is_ssl() ? 'https' : 'http'; 107 110 wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null ); … … 373 376 elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) 374 377 $classes[] = 'custom-background-white'; 375 378 379 // Enable custom font class only if the font CSS is queued to load. 380 if ( wp_style_is( 'twentytwelve-fonts' ) ) 381 $classes[] = 'custom-font-enabled'; 382 376 383 return $classes; 377 384 } 378 385 add_filter( 'body_class', 'twentytwelve_body_class' );