Changeset 21668
- Timestamp:
- 08/30/2012 04:59:22 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r21643 r21668 103 103 /* 104 104 * Loads our special font CSS file. 105 * 106 * To disable in a child theme, use wp_dequeue_style() 107 * function mytheme_dequeue_fonts() { 108 * wp_dequeue_style( 'twentytwelve-fonts' ); 109 * } 110 * add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 ); 105 111 */ 106 112 $protocol = is_ssl() ? 'https' : 'http'; … … 377 383 $classes[] = 'custom-background-white'; 378 384 385 // Enable custom font class only if the font CSS is queued to load. 386 if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) 387 $classes[] = 'custom-font-enabled'; 388 379 389 return $classes; 380 390 } -
trunk/wp-content/themes/twentytwelve/style.css
r21667 r21668 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 } 444 body.custom-font-enabled { 445 font-family: "Open Sans", Helvetica, Arial, sans-serif; 443 446 } 444 447 a {
Note: See TracChangeset
for help on using the changeset viewer.