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

    解决WordPress使用默认主题访问慢的问题

    admin发表于 2014-06-10 13:12:14
    love 0

    最近把WordPress升级到了最新的3.9版本,随便吧我以前的主题也给淘汰掉,开始使用WordPress的自带主题、当然我还是使用子主题的方式来解决主题更新的问题。

    但是今天一个网友留言,说在访问博客的时候一直卡在加载页面,需要很长世间;

    http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext
    

    后来我查看了一下这个链接地址;发现是Google的字体文件; 最近Google的很多服务都访问异常,所以导致使用了Google字体的网站。

    知道了原因那么解决办法就很简单了

    1. 禁用Google字体
    2. 吧Google字体下载到WordPress服务器上,并修改好css里面的Google字体URL即可

    接着在Google字体站点研究了一下,发现现在Google字体还不支持中文;可能是中文字体实在是很大的原因。

    所以就放弃了第二种办法,反正Google没有中文字体,也就没有必要吧Google字体下载回来放在服务器上了。

    然后在WordPress后台看到一个Disable Google Fonts插件

    This plugin stops loading of Open Sans and other fonts used by WordPress and bundled themes
    (Twenty Twelve, Twenty Thirteen, Twenty Fourteen) from Google Fonts.
    
    Reasons for not using Google Fonts might be privacy and security, local development or production, blocking of Google's servers,
    characters not supported by font, performance.
    
    Disable Google Fonts is a very lightweight, it has no settings, just activate it and it works immediately.
    

    看人家上面说的可明白了;就是为了那些使用Twenty Twelve, Twenty Thirteen, Twenty Fourteen默认主题的又被BAN了Google服务的同学准备的。

    后台安装好插件,启用即可生效。完全没任何设置选项。



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