在wordpress的网站下载了disable google font 这个插件,安装了,但是没有效果
|
gangstaJun 24, 2014
1
在functions.php写个函数就OK了
Google : WP remove open sans |
|
icanforkJun 24, 2014
2
|
|
XXOOJun 24, 2014
3
不是有360 镜像么
|
|
shinivJun 24, 2014
4
class Disable_Google_Fonts {
public function __construct() { add_filter( 'gettext_with_context', array( $this, 'disable_open_sans'), 888, 4 ); } public function disable_open_sans( $translations, $text, $context, $domain ) { if ( 'Open Sans font: on or off' == $context && 'on' == $text ) { $translations = 'off'; } return $translations; } } $disable_google_fonts = new Disable_Google_Fonts; |
|
X-ForceJun 24, 2014
5
|
|
deckenJun 24, 2014
6
一开始我还以为是哪个插件带的, 排查了老半天也没查出来
|
|
chianJun 24, 2014
9
直接注释掉这一段
// $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets"; 路径wp-includes\script-loader.php |
|
notcomeJun 25, 2014 via iPhone
10
这是样式写入 PHP 嘛……
|
|
coolicerJun 25, 2014
11
我那是主题加的,我直接去CSS去掉。
|
|
hiswayJun 25, 2014
12
主题中查找到fonts.googleapis.com这段,直接替换成国内的字体库,百度,360都有,很好用。
|
|
13
这个问题这几天很火,这是我的收集: http://dalongmao.sinaapp.com/archives/144
|
|
kingmeJun 25, 2014
14
安装插件,disable google font
|
|
XXOOJun 25, 2014
20
|