WordPress 後臺禁用Google Open Sans字體,加速網站

解決方法很簡單,安裝啓用 Disable Google Fonts 或者 Remove Open Sans font Link from WP core 其中之一便可。或者若是你沒有使用WP自帶的官方主題,那你添加下面的代碼到當前所用的主題的 functions.php 中便可:php

/** * WordPress 後臺禁用Google Open Sans字體,加速網站 * http://www.wpdaxue.com/disable-google-fonts.html */ add_filter( 'gettext_with_context', 'wpdx_disable_open_sans', 888, 4 ); function wpdx_disable_open_sans( $translations, $text, $context, $domain ) { if ( 'Open Sans font: on or off' == $context && 'on' == $text ) { $translations = 'off'; } return $translations;

用Open Sans 字體教程:html

將WordPress後臺的open-sans字體加載源從Google Fonts換爲360 CDNdom

http://www.wpdaxue.com/disable-google-fonts.html字體

相關文章
相關標籤/搜索