From cbe06431e344c6b9efaa6880e95ed1a123a03572 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 13 Apr 2018 14:47:07 -0400 Subject: [PATCH] removing enqueue test --- functions.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 4b86aed..6230f5e 100644 --- a/functions.php +++ b/functions.php @@ -172,12 +172,7 @@ function accesspress_parallax_scripts() { wp_enqueue_style('accesspress-parallax-woocommerce',get_template_directory_uri().'/woocommerce/ap-parallax-style.css'); wp_enqueue_style( 'accesspress-parallax-style', get_stylesheet_uri() ); wp_enqueue_style( 'accesspress-parallax-responsive', get_template_directory_uri() . '/css/responsive.css' ); - if (of_get_option('enable_animation') == '1'){ - echo "animation"; - } - if(is_front_page()){ - echo "FRONT"; - } + if (of_get_option('enable_animation') == '1' && is_front_page()) : wp_enqueue_script('wow', get_template_directory_uri() . '/js/wow.js', array('jquery'), '1.0', true); endif; -- 2.17.1