wordpress谷歌字体
2024-08-21 21:48:58
wordpress插件:disable google fonts
wordpress插件:Remove Open Sans font from WP core
在主题的functions.php添加以下代码
代码一:
function coolwp_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', 'coolwp_remove_open_sans_from_wp_core' );
- 2
代码二:
// Remove Open Sans that WP adds from frontend
if (!function_exists('remove_wp_open_sans')) :
function remove_wp_open_sans() {
wp_deregister_style( 'open-sans' );
wp_register_style( 'open-sans', false );
}
// 前台删除Google字体CSS
add_action('wp_enqueue_scripts', 'remove_wp_open_sans');
// 后台删除Google字体CSS
add_action('admin_enqueue_scripts', 'remove_wp_open_sans');
endif;
最新文章
- MySQL事务学习-->;隔离级别
- Hibernate中in语句ids
- php读取xml文件内容,并循环写入mysql数据库
- Python的简介以及安装和第一个程序以及用法
- linux jdk,java ee ,tomcat 安装配置
- HDU2647-Reward(拓扑排序)
- [LeetCode141]Linked List Cycle
- java中除去字符串(String)中的换行字符(\r \n)
- Web缓存相关知识整理
- Grunt压缩图片
- LeetCode算法题-Design HashMap(Java实现)
- 安装 Docker <;一>;
- logging日志——Basic Logging Tutorial
- HDU 1575(裸矩阵快速幂)
- mouseover,mouseout与mouseenter,mouseleave
- callback 模式
- 第二十七章 springboot + zipkin(brave-okhttp实现)
- web基础----->;jersey整合jetty开发restful应用(一)
- 安插,复制,替换和删除ul中的li
- sublime text3怎么让左侧显示目录树
热门文章
- _编程语言_C++_宏定义#define 和 常量const 的区别
- 【python】Python 中的 classmethod 和 staticmethod
- Javaweb异常提示信息统一处理
- Redis集群错误
- 图解FTP服务器搭建(Windows Server 2008)
- OpencvSharp 在WPF的Image控件中显示图像
- ionic3.x angular4.x ng4.x 自定义组件component双向绑定之自定义计数器
- Spring IOC 容器源码分析 - 获取单例 bean
- DS-博客作业03--栈和队列
- Linux防火墙配置与管理(16)