106 | | * To disable in a child theme, use wp_dequeue_style() |
107 | | * function mytheme_dequeue_fonts() { |
108 | | * wp_dequeue_style( 'twentytwelve-fonts' ); |
109 | | * } |
| 106 | * The use of Open Sans by default is localized. For languages that use |
| 107 | * characters not supported by the font, the font can be disabled. |
| 108 | * |
| 109 | * To disable in a child theme, use wp_dequeue_style() |
| 110 | * function mytheme_dequeue_fonts() { |
| 111 | * wp_dequeue_style( 'twentytwelve-fonts' ); |
| 112 | * } |
111 | | */ |
112 | | $protocol = is_ssl() ? 'https' : 'http'; |
113 | | wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null ); |
| 114 | */ |
| 115 | /* translators: If there are characters in your language that are not supported by Open Sans, |
| 116 | enter 'disable-open-sans'. Otherwise enter 'enable-open-sans'. Do not translate into your own language. */ |
| 117 | if ( strpos( _x( 'enable-open-sans', 'Open Sans font: enable or disable', 'twentytwelve' ), 'disable' ) === false ) { |
| 118 | $protocol = is_ssl() ? 'https' : 'http'; |
| 119 | wp_enqueue_style( 'twentytwelve-fonts', "$protocol://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700", array(), null ); |
| 120 | } |