码迷,mamicode.com
首页 > 其他好文 > 详细

Wordpress 运行缓慢的解决方法

时间:2015-02-04 23:12:09      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:

原因为wordpress 3.8之后采用google字体所致.
 
修改 functions.php 
 
//禁用Open Sans
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;
 
Wordpress 缓慢的问题
 
 
下载并使用如下插件:
Remove Google Fonts References
 

首先进入站点后台,打开 “设置” → “讨论”,向下滚动,找到 “头像” 设置区域,把 “显示头像” 勾选掉。

 

保存以后,后台打开速度变快了很多。

虽然在后台禁用 Gravatar 头像,但是前台显示依然没有影响。

Wordpress 运行缓慢的解决方法

标签:

原文地址:http://www.cnblogs.com/shiratsuki/p/4273413.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!