Disable and Remove Google Fonts - Version 1.3.8

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon wp plugin Disable and Remove Google Fonts
Version 1.3.8
Comparing to
See all releases

Code changes from version 1.3.71 to 1.3.8

Files changed (3) hide show
  1. changelog.txt +4 -0
  2. disable-remove-google-fonts.php +11 -2
  3. readme.txt +3 -2
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.3.7 =
2
 
3
  * Add compatibility for Hemingway.
1
+ = 1.3.8 =
2
+
3
+ * Add compatibility for Enfold.
4
+
5
  = 1.3.7 =
6
 
7
  * Add compatibility for Hemingway.
disable-remove-google-fonts.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /**
3
- * Plugin Name: Disable/Remove Google Fonts
4
  * Plugin URI: https://wordpress.org/plugins/disable-remove-google-fonts/
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
- * Version: 1.3.7
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
@@ -137,3 +137,12 @@ if ( ! function_exists( 'hemingway_get_google_fonts_url' ) ) {
137
  return false;
138
  }
139
  }
 
 
 
 
 
 
 
 
 
1
  <?php
2
  /**
3
+ * Plugin Name: Disable & Remove Google Fonts
4
  * Plugin URI: https://wordpress.org/plugins/disable-remove-google-fonts/
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
+ * Version: 1.3.8
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
137
  return false;
138
  }
139
  }
140
+
141
+ /**
142
+ * Dequeue Google Fonts loaded by the Avia framework (Enfold theme).
143
+ */
144
+ add_action( 'init', 'drgf_enfold_customization_switch_fonts' );
145
+ function drgf_enfold_customization_switch_fonts() {
146
+ global $avia;
147
+ $avia->style->print_extra_output = false;
148
+ }
readme.txt CHANGED
@@ -23,17 +23,18 @@ This plugin will work with all WordPress themes and has been specifically tested
23
  * Twenty Seventeen
24
  * Twenty Nineteen
25
  * Twenty Twenty
 
26
  * Sydney
27
- * Storefront
28
  * Hestia
29
  * Hueman
30
- * Zerif Lite
31
  * Vantage
32
  * ColorMag
33
  * Shapely
34
  * OnePress
35
  * JupiterX
 
36
  * Divi Extra
 
37
 
38
  It will also remove Google Fonts loaded by the following plugins:
39
 
23
  * Twenty Seventeen
24
  * Twenty Nineteen
25
  * Twenty Twenty
26
+ * Enfold
27
  * Sydney
 
28
  * Hestia
29
  * Hueman
 
30
  * Vantage
31
  * ColorMag
32
  * Shapely
33
  * OnePress
34
  * JupiterX
35
+ * Storefront
36
  * Divi Extra
37
+ * Zerif Lite
38
 
39
  It will also remove Google Fonts loaded by the following plugins:
40