首页 > 其他 > 详细

Wordpress 运行缓慢的解决方法

时间:2015-02-04 23:12:05      阅读:369      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!