include front page
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 21 Jun 2016 18:50:40 +0000 (14:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 21 Jun 2016 18:50:40 +0000 (14:50 -0400)
functions.php

index 2ce5214..f2bb201 100644 (file)
@@ -84,7 +84,10 @@ function glm_site_scripts()
     wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
     if(is_front_page()) {
     }
-    if ( isset( $post ) && in_array( $post->ID, array( 3193, 3194, 3195, 3196, 3197, 3200, 3309, 3303, 3315, 3307 ) ) {
+    if ( isset( $post ) 
+        && ( is_front_page() ||
+            in_array( $post->ID, array( 3193, 3194, 3195, 3196, 3197, 3200, 3309, 3303, 3315, 3307 ) )
+    ) {
         wp_enqueque_script(
             'discover-survey',
             'https://survey.vovici.com/intercept.ashx?i=209A5BC47CEE319B',