From 83f98268d86721641628216a02c526b6992aa84a Mon Sep 17 00:00:00 2001 From: Zaher Dirkey Date: Sun, 1 Mar 2015 21:24:14 +0200 Subject: [PATCH] fix font of tablets --- functions.php | 11 +++++++---- style.css | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index 72ebde5..b4db99b 100644 --- a/functions.php +++ b/functions.php @@ -260,6 +260,7 @@ function metallic_activation($old_theme) function mettalic_styles() { global $is_tablet; + $gradients = get_theme_mod('gradients', true); $params = '?gradients='; @@ -268,10 +269,12 @@ function mettalic_styles() else $params .= '0'; - if (wp_is_mobile()) - $font_size = get_theme_mod('mobile_font_size', ''); - elseif ($is_tablet) - $font_size = get_theme_mod('tablet_font_size', ''); + if (wp_is_mobile()) { + if ($is_tablet) + $font_size = get_theme_mod('tablet_font_size', ''); + else + $font_size = get_theme_mod('mobile_font_size', ''); + } else $font_size = get_theme_mod('desktop_font_size', ''); diff --git a/style.css b/style.css index 01ef0e6..af065cb 100644 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ Theme Name: Metallic Theme URI: https://github.com/parmaja/wp_metallic Download: https://github.com/parmaja/wp_metallic/releases -Version: 1.10.2 +Version: 1.10.3 Author: Zaher Dirkey Author URI: http://www.parmaja.com License: GNU General Public License v2 or later