Google Fonts for WordPress - Version 1.8.4

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon 128x128 Google Fonts for WordPress
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.8.3 =
2
 
3
  * Move 'CSS' setting to 'Advanced' panel
1
+ = 1.8.4 =
2
+
3
+ * Add compatibility pack for ThemeIsle themes.
4
+
5
  = 1.8.3 =
6
 
7
  * Move 'CSS' setting to 'Advanced' panel
compatability/themeisle.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Compatability file for ThemeIsle themes.
4
+ *
5
+ * @package olympus-google-fonts
6
+ * @copyright Copyright (c) 2019, Fonts Plugin
7
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8
+ */
9
+
10
+ /**
11
+ * Modify the default element selectors to improve compatability with ThemeIsle themes.
12
+ *
13
+ * @param array $elements The default elements.
14
+ */
15
+ function ogf_themeisle_elements( $elements ) {
16
+
17
+ $elements['ogf_post_page_h1']['selectors'] = '.entry-content h1, .post-content h1, .page-content h1, #content h1, .single-post-wrap h1, .page-content-wrap h1';
18
+ $elements['ogf_post_page_h2']['selectors'] = '.entry-content h2, .post-content h2, .page-content h2, #content h2, .single-post-wrap h2, .page-content-wrap h2';
19
+ $elements['ogf_post_page_h3']['selectors'] = '.entry-content h3, .post-content h3, .page-content h3, #content h3, .single-post-wrap h3, .page-content-wrap h3';
20
+ $elements['ogf_post_page_h4']['selectors'] = '.entry-content h4, .post-content h4, .page-content h4, #content h4, .single-post-wrap h4, .page-content-wrap h4';
21
+ $elements['ogf_post_page_h5']['selectors'] = '.entry-content h5, .post-content h5, .page-content h5, #content h5, .single-post-wrap h5, .page-content-wrap h5';
22
+ $elements['ogf_post_page_h6']['selectors'] = '.entry-content h6, .post-content h6, .page-content h6, #content h6, .single-post-wrap h6, .page-content-wrap h6';
23
+ return $elements;
24
+
25
+ }
26
+
27
+ add_filter( 'ogf_elements', 'ogf_themeisle_elements' );
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
8
- * Version: 1.8.3
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
@@ -18,7 +18,7 @@
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
- define( 'OGF_VERSION', '1.8.3' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
5
  * Plugin Name: Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
8
+ * Version: 1.8.4
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
+ define( 'OGF_VERSION', '1.8.4' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
  License: GPLv2 or later
8
- Stable tag: 1.8.3
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
11
 
@@ -48,6 +48,7 @@ The Google Fonts for WordPress plugin will work with all WordPress themes and ha
48
  * TwentySixteen
49
  * TwentySeventeen
50
  * ThemeGrill
 
51
 
52
  ### Further Reading
53
 
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
  License: GPLv2 or later
8
+ Stable tag: 1.8.4
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
11
 
48
  * TwentySixteen
49
  * TwentySeventeen
50
  * ThemeGrill
51
+ * ThemeIsle
52
 
53
  ### Further Reading
54