From c3a57ae0a070f40aa41f9b41192777d17f2049d3 Mon Sep 17 00:00:00 2001 From: kjodle Date: Wed, 17 Feb 2016 18:44:04 -0500 Subject: [PATCH] Added mobile breakpoint option --- functions.php | 2 +- functions/customizer.php | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index aad05d6..823fb5c 100644 --- a/functions.php +++ b/functions.php @@ -128,7 +128,7 @@ if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { wp_enqueue_style( 'atticus-finch-menu-style', get_template_directory_uri() . '/styles/menumaker.css', 'atticus-finch-style', '0.4', 'screen' ); - wp_enqueue_style( 'atticus-finch-mobile', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-style', '0.4', 'screen and (max-width: 640px)' ); + wp_enqueue_style( 'atticus-finch-mobile', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-style', '0.4', 'screen and (max-width: '. get_theme_mod( 'atticus_finch_mobile_breakpoint' ) . 'px)' ); wp_enqueue_style( 'atticus-finch-print', get_stylesheet_directory_uri() . '/styles/print.css', 'atticus-finch-style', '0.4', 'print' ); diff --git a/functions/customizer.php b/functions/customizer.php index 84fac4b..7d8aec5 100644 --- a/functions/customizer.php +++ b/functions/customizer.php @@ -672,7 +672,7 @@ $default_copyright = ' 'atticusfinch', ) ); @@ -815,6 +815,20 @@ $default_copyright = '