excluding the add event page from using crowdriff
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Jul 2017 19:56:18 +0000 (15:56 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 20 Jul 2017 19:56:18 +0000 (15:56 -0400)
crowdriff script blocks the add event confirmation page from redirecting properly in chrome,
adding a condition to stop the script from loading on that page

header.php
index.php
style.css

index c722222..06e2fb2 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.1.22">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.1.23">
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/favicon.ico?v=1.0.4">
     <link href='https://fonts.googleapis.com/css?family=Lato:400,400italic,700' rel='stylesheet' type='text/css'>
 
index e26b8ad..fb2b69c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -24,7 +24,7 @@
                 <a id="big-lens"><h1>#DiscoverKZoo</h1></a>
             </div>
         </div>
-        <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140))) { ?>
+        <?php if ((get_post_type( $post ) != "ai1ec_event") && ($post != get_post(3198))  && ($post != get_post(1140)) && (is_page(8523))) { ?>
         <div id="bottom-lens">
             <script id="cr__init-b054762a" src="https://embed.crowdriff.com/js/init?hash=b054762a" async></script>
         </div>
index da41779..b385f2d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: DiscoverKalamazoo
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for DiscoverKalamazoo
-Version: 1.1.22
+Version: 1.1.23
 */