关于谷歌字体插件(Replace Google Fonts)默认https请求加载失败问题解决办法如下:publicfunctionohMyFont($text){returnstr_replace('//fonts.googleapis.com/','//fonts.useso.com/',$text);}把花括号里面的字符串改为即可:public function ohMyFont($text){$text = str_replace('https://fonts.googleapis.com/', 'http://fonts.useso.com/', $text);$text = str_replace('//fonts.googleapis.com/', 'http://fonts.useso.com/', $text);return $text;}以上。
...
继续阅读
(49)