比起换用360公共库来说,直接禁用后台加载googleapi等来源字体更好一些。代码如下(加入主题的functions.php
中)
只要直接禁用Open Sans
字体即可
//移除后台谷歌字体 function disable_open_sans( $translations, $text, $context, $domain ) { if ( 'Open Sans font: on or off' == $context && 'on' == $text ) { $translations = 'off'; } return $translations; } add_filter( 'gettext_with_context', 'disable_open_sans', 888, 4 );
本站文章除注明转载/出处外,均为本站原创或翻译。若要转载但请务必注明出处,尊重他人劳动成果。
转载请注明出处链接 : https://www.inlojv.com/4680.html