现在的位置: 首页 > 电脑相关 > 正文
关于谷歌字体插件(Replace Google Fonts)默认https请求加载失败问题解决办法
2016年03月03日 电脑相关 ⁄ 共 392字 评论数 1

关于谷歌字体插件(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;
}

以上。
建伟

目前有 1 条留言 其中:访客:0 条, 博主:0 条

  1. 新成 : 2016年03月03日21:05:39  -49楼 @回复 回复

    配图的美女好看

给我留言

留言无头像?



×