• wordpress插件:disable google fonts

  • wordpress插件:Remove  Open Sans font from WP core

    1. 在主题的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. 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;

最新文章

  1. MySQL事务学习-->隔离级别
  2. Hibernate中in语句ids
  3. php读取xml文件内容,并循环写入mysql数据库
  4. Python的简介以及安装和第一个程序以及用法
  5. linux jdk,java ee ,tomcat 安装配置
  6. HDU2647-Reward(拓扑排序)
  7. [LeetCode141]Linked List Cycle
  8. java中除去字符串(String)中的换行字符(\r \n)
  9. Web缓存相关知识整理
  10. Grunt压缩图片
  11. LeetCode算法题-Design HashMap(Java实现)
  12. 安装 Docker <一>
  13. logging日志——Basic Logging Tutorial
  14. HDU 1575(裸矩阵快速幂)
  15. mouseover,mouseout与mouseenter,mouseleave
  16. callback 模式
  17. 第二十七章 springboot + zipkin(brave-okhttp实现)
  18. web基础----->jersey整合jetty开发restful应用(一)
  19. 安插,复制,替换和删除ul中的li
  20. sublime text3怎么让左侧显示目录树

热门文章

  1. _编程语言_C++_宏定义#define 和 常量const 的区别
  2. 【python】Python 中的 classmethod 和 staticmethod
  3. Javaweb异常提示信息统一处理
  4. Redis集群错误
  5. 图解FTP服务器搭建(Windows Server 2008)
  6. OpencvSharp 在WPF的Image控件中显示图像
  7. ionic3.x angular4.x ng4.x 自定义组件component双向绑定之自定义计数器
  8. Spring IOC 容器源码分析 - 获取单例 bean
  9. DS-博客作业03--栈和队列
  10. Linux防火墙配置与管理(16)