diff --git a/lib/class-option-font.php b/lib/class-option-font.php index 443abe1b..b64af3db 100644 --- a/lib/class-option-font.php +++ b/lib/class-option-font.php @@ -56,20 +56,20 @@ class TitanFrameworkOptionFont extends TitanFrameworkOption { // The list of web safe fonts public static $webSafeFonts = array( - 'Arial, Helvetica, sans-serif' => 'Arial', - '"Arial Black", Gadget, sans-serif' => 'Arial Black', - '"Comic Sans MS", cursive, sans-serif' => 'Comic Sans', - '"Courier New", Courier, monospace' => 'Courier New', - 'Georgia, serif' => 'Geogia', - 'Impact, Charcoal, sans-serif' => 'Impact', - '"Lucida Console", Monaco, monospace' => 'Lucida Console', - '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans', - '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino', - 'Tahoma, Geneva, sans-serif' => 'Tahoma', - '"Times New Roman", Times, serif' => 'Times New Roman', - '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet', - 'Verdana, Geneva, sans-serif' => 'Verdana', - ); + 'Arial, Helvetica, sans-serif' => 'Arial', + '"Arial Black", Gadget, sans-serif' => 'Arial Black', + '"Comic Sans MS", cursive, sans-serif' => 'Comic Sans', + '"Courier New", Courier, monospace' => 'Courier New', + 'Georgia, serif' => 'Georgia', + 'Impact, Charcoal, sans-serif' => 'Impact', + '"Lucida Console", Monaco, monospace' => 'Lucida Console', + '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans', + '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino', + 'Tahoma, Geneva, sans-serif' => 'Tahoma', + '"Times New Roman", Times, serif' => 'Times New Roman', + '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet', + 'Verdana, Geneva, sans-serif' => 'Verdana', + ); // Holds all the options with Google Fonts for enqueuing. // We need to do this since we want to gather all the fonts first then enqueue only the unique fonts @@ -167,7 +167,7 @@ public function getGoogleFontURLs() { if ( empty( $fontValue['font-family'] ) ) { continue; } - if ( $fontValue['font-family'] == 'inherit' ) { + if ( $fontValue['font-family'] == 'inherit' || $fontValue['font-family'] == 'default' ) { continue; } @@ -262,7 +262,11 @@ public function generateCSS( $css, $option ) { $value = array_merge( self::$defaultStyling, $value ); foreach ( $value as $key => $val ) { - + + //If value is set to default then skip + if($val == 'default'){ + continue; + } // Force skip other keys, those are processed under another key, e.g. text-shadow-distance is // used by text-shadow-location if ( in_array( $key, $skip ) ) { @@ -552,6 +556,7 @@ public function display() {