From d49c67ee069a9400a7f8301af6774eda248f1565 Mon Sep 17 00:00:00 2001 From: kjodle Date: Sat, 30 Jan 2016 20:24:39 -0500 Subject: [PATCH] Font Awesome issue Only load Font Awesome if not already loaded --- functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.php b/functions.php index 55f2f37..04badd6 100644 --- a/functions.php +++ b/functions.php @@ -122,7 +122,9 @@ function atticus_finch_scripts() { wp_enqueue_style( 'atticus-finch-googlefont', 'http://fonts.googleapis.com/css?family=IM+Fell+English:400,400italic', 'atticus-finch-style', '0.4', 'all' ); +if ( !wp_style_is( 'font-awesome.min.css', 'enqueued' ) ) { wp_enqueue_style( 'atticus-finch-fa', 'http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', 'atticus-finch-style', '0.4', 'all' ); +} wp_enqueue_style( 'atticus-finch-mobile', get_stylesheet_directory_uri() . '/styles/mobile.css', 'atticus-finch-style', '0.4', 'handheld' );