Skip to content

Commit

Permalink
fix font of tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
zaher committed Mar 1, 2015
1 parent 68d6aee commit 83f9826
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function metallic_activation($old_theme)
function mettalic_styles()
{
global $is_tablet;

$gradients = get_theme_mod('gradients', true);

$params = '?gradients=';
Expand All @@ -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', '');

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83f9826

Please sign in to comment.