Ticket #21694: opensans.diff
File opensans.diff, 1.4 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentytwelve/style.css
434 434 body { 435 435 font-size: 14px; 436 436 font-size: 1rem; 437 font-family: "Open Sans",Helvetica, Arial, sans-serif;437 font-family: Helvetica, Arial, sans-serif; 438 438 text-rendering: optimizeLegibility; 439 439 color: #444; 440 440 } 441 body.enable-fonts { 442 font-family: "Open Sans", Helvetica, Arial, sans-serif; 443 } 441 444 a { 442 445 outline: none; 443 446 color: #21759b; -
wp-content/themes/twentytwelve/functions.php
370 370 * @return array Filtered class values. 371 371 */ 372 372 function twentytwelve_body_class( $classes ) { 373 global $twentytwelve_options; 373 374 $background_color = get_background_color(); 374 375 375 376 if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) ) … … 383 384 elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) 384 385 $classes[] = 'custom-background-white'; 385 386 387 $options = $twentytwelve_options->get_theme_options(); 388 if ( $options['enable_fonts'] ) 389 $classes[] = 'enable-fonts'; 390 386 391 return $classes; 387 392 } 388 393 add_filter( 'body_class', 'twentytwelve_body_class' );