最近越来越多朋友询问,为什么 WordPress 后台突然变慢了很多。究其原因,还是拜天朝的“长城防火墙”所赐 —— 屏蔽了N多Google的IP——导致WordPress后台无法正常加载 Google Open Sans 字体。现在连Google搜索都无法正常使用了,实在郁闷!这可恶的墙!!
将下面的代码铁入到当前主题的 functions.php 文件:
// 移除谷歌字体链接 function aivewp_remove_open_sans_from_wp_core() { wp_deregister_style( 'open-sans' ); wp_register_style( 'open-sans', false ); wp_enqueue_style('open-sans',''); } add_action( 'init', 'aivewp_remove_open_sans_from_wp_core' );
楼下是疯子。哈哈
Excellent post. I used to be checking continuously this blog and I am inspired! Extremely useful information specially the ultimate phase 🙂 I take care of such information a lot. I was looking for this certain info for a long time. Thank you and good luck.
这个貌似只对wordpress前台有效,后台照样走google,不知道这个问题解决了没有
我后台也挺快的,不知道啥原因,正在摸索中…
这个有效果吗?试了很多方法效果都不明显,这个代码随便粘贴到文件里面的那一行吗?
将代码粘贴到当前主题的 functions.php 文件中
随便粘贴到哪一行吗?我直接粘贴到最后面一行,可以么?
粘贴到中间
好的,谢谢