Update for js location
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Nov 2017 15:43:03 +0000 (10:43 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Nov 2017 15:43:03 +0000 (10:43 -0500)
put js in footer of site.

index.php
parts/header-meta.php

index f8e5ee6..ef565ea 100644 (file)
--- a/index.php
+++ b/index.php
@@ -44,5 +44,8 @@
         <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
         <script charset="utf-8" type="text/javascript" src="//ws.sharethis.com/button/buttons.js"></script>
         <script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});var st_type="wordpress4.3.1";</script>
+    <?php if ( in_array( $post->ID, array( 221, 228, 465 ) ) ) : ?>
+        <script src="<?php echo get_stylesheet_directory_uri() ; ?>/assets/smartbanner/smartbanner.js"></script>
+    <?php endif; ?>
     </body>
 </html>
index 9bf3d39..25cef95 100644 (file)
@@ -27,6 +27,5 @@
         <meta name="smartbanner:icon-apple" content="<?php echo get_stylesheet_directory_uri() ; ?>/assets/smartbanner/smartbanner.png">
         <meta name="smartbanner:icon-google" content="<?php echo get_stylesheet_directory_uri() ; ?>/assets/smartbanner/smartbanner.png">
         <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/smartbanner/smartbanner.css">
-        <script src="<?php echo get_stylesheet_directory_uri() ; ?>/assets/smartbanner/smartbanner.js"></script>
     <?php endif; ?>
   </head>