wordpress不加载Google fonts的几种办法
来源:互联网 发布:网络编程实用教程第3版 编辑:程序博客网 时间:2024/05/17 01:07
wordpress不加载Google fonts的几种办法
一、安装Disable Google Font插件,但经过测试之后,没有明显效果。(不推荐)。
二、注释或删除掉style.css和function.php有关加载Google字体的代码fonts.googleapis.com即可。
三、将以下代码添加到主题目录下的functions.php中
if(!class_exists('Disable_Google_Fonts')):
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;
}
}
endif;
$disable_google_fonts = new Disable_Google_Fonts;
0 0
- wordpress不加载Google fonts的几种办法
- wordpress不加载Google fonts的几种办法
- 禁用Google Fonts解决WordPress加载速度缓慢的问题
- Google Fonts导致WordPress 速度问题的三个解决方案
- Google Fonts导致WordPress 速度变慢
- 如何使用Google Fonts的360镜像给WordPress网站提
- 让EditText不自动聚焦的几种办法!
- css中元素不可见的几种办法
- css中元素不可见的几种办法
- css中元素不可见的几种办法
- 手动屏蔽google的fonts api
- Wordpress 禁止加载Google Front
- wordpress 删除google字体,解决加载慢的问题
- fonts.googleapis.com加载慢的解决办法
- fonts.googleapis.com 加载慢的解决方法
- 求逆元的几种办法
- iOS中常用的几种延时加载/执行的处理办法
- wordpress博客最近变慢之解决(fonts.google.com)
- java中的数学计算函数
- C语言自增自减运算符
- Python 统计文章单词出现频率
- [LeetCode] Reorder List
- ECC 5.0,un-unicode系统,接收从外围unicode系统传过来的XML文件中出现乱码的解决方法
- wordpress不加载Google fonts的几种办法
- Linux——进程管理
- (贪心)HDU 1789 解题报告
- Linux TCP/UDP小例子
- EncodeDemo
- 传参和继承
- oracle用 pl/sql 可以连接,用cmd无法连接的解决方法
- 关于程序提示丢失msvcr120.dll的解决办法
- EncodeDemo2