Skip to content
Browse files

Reduce weights and styles loaded from Google for Open Sans, fixes #40

  • Loading branch information...
1 parent 3dcb40f commit 3a8e57e0037cc58c36979d8e96bc525c8de274a2 @lancewillett lancewillett committed Jul 5, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 build/functions.php
  2. +1 −2 source/functions/functions.php
View
3 build/functions.php
@@ -106,12 +106,11 @@ function twentytwelve_scripts_styles() {
* Depends on Theme Options setting.
*
* TODO handle loading only the needed character sets based on current language setting
- * TODO reduce the Google font weight list to load only the ones used in the theme
* See https://github.com/thethemefoundry/twentytwelve/issues/24
*/
$options = $twentytwelve_options->get_theme_options();
if ( $options['enable_fonts'] )
- wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' );
+ wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' );
/**
* Load our main CSS file.
View
3 source/functions/functions.php
@@ -106,12 +106,11 @@ function twentytwelve_scripts_styles() {
* Depends on Theme Options setting.
*
* TODO handle loading only the needed character sets based on current language setting
- * TODO reduce the Google font weight list to load only the ones used in the theme
* See https://github.com/thethemefoundry/twentytwelve/issues/24
*/
$options = $twentytwelve_options->get_theme_options();
if ( $options['enable_fonts'] )
- wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' );
+ wp_enqueue_style( 'fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' );
/**
* Load our main CSS file.

0 comments on commit 3a8e57e

Please sign in to comment.
Something went wrong with that request. Please try again.