加速方法很简单,安装启用 Disable Google Fonts 或者 Remove Open Sans font Link from WP core 其中之一即可。或者如果你没有使用WP自带的官方主题,那你添加下面的代码到当前所用的主题的 functions.php 中即可:(博主就是加了这个代码)
/**
* WordPress 后台禁用Google Open Sans字体,加速网站
*/
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;
}
恩不错,不过我都是用前端库的~你可以看看我的哦~http://inve.pw
博主我会告诉你这里有个好玩的插件吗→http://blog.lwl12.com/read/wp-plus/