Twenty Twelve | How to unlink Open Sans font

Twenty Twelve loads "Open Sans" font style as special font.
in case you don't need this you can unlink this by following way which written in Twenty Twelve functions.php.

Twenty Twelve - Open sans

/wp-content/themes/twentytwelve/functions.php

	/*
	 * Loads our special font CSS file.
	 *
	 * The use of Open Sans by default is localized. For languages that use
	 * characters not supported by the font, the font can be disabled.
	 *
	 * To disable in a child theme, use wp_dequeue_style()
	 * function mytheme_dequeue_fonts() {
	 *     wp_dequeue_style( 'twentytwelve-fonts' );
	 * }
	 * add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );
	 */

Just copy this into functions.php in child theme like this.

/wp-content/themes/[child theme]/functions.php

// To disable in a child theme, use wp_dequeue_style()
function mytheme_dequeue_fonts() {
    wp_dequeue_style( 'twentytwelve-fonts' );
}
add_action( 'wp_enqueue_scripts', 'mytheme_dequeue_fonts', 11 );

this will let your wp site not link "Open Sans" font at id="twentytwelve-fonts-css"

  • このエントリーをはてなブックマークに追加

関連記事

(日本語) ウィジェット関連のカスタマイズ・プラグイン

Sorry, this entry is only available in 日本語.

(日本語) Twenty Fourteenカスタマイズ用プラグインと派生テーマ

Sorry, this entry is only available in 日本語.

(日本語) 独自のCSSやJSを読み込む

Sorry, this entry is only available in 日本語.

(日本語) Twenty Eleven カスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) サイトのキャプチャをショートコードで生成してくれる「Browser Shots」

Sorry, this entry is only available in 日本語.

(日本語) ログイン画面・機能をカスタマイズ

Sorry, this entry is only available in 日本語.

(日本語) Tumblrの投稿をウィジェットに表示できる「Tumblr Widget」

Sorry, this entry is only available in 日本語.

Contact Form 7 | Failed to send your message~

This has been fixed in WordPress 3.5 When encountered the following message, please try with the

no image

(日本語) スライダー・ギャラリー プラグイン

Sorry, this entry is only available in 日本語.

(日本語) 投稿記事から「(ログイン)ユーザー名」がバレるのを防ぐ

Sorry, this entry is only available in 日本語.

Message

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PAGE TOP ↑