IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    关于谷歌字体插件(Replace Google Fonts)默认https请求加载失败问题解决办法

    建伟发表于 2016-03-03 05:40:36
    love 0

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


沪ICP备19023445号-2号
友情链接