trying to isolate the pages which the blocks appear
authorIan Weller <ian@gaslightmedia.com>
Thu, 6 Apr 2017 19:07:04 +0000 (15:07 -0400)
committerIan Weller <ian@gaslightmedia.com>
Thu, 6 Apr 2017 19:07:04 +0000 (15:07 -0400)
I have finished an if statement to help isolate what page the blocks in
the golf template will show.  I think it is going to work.

page-golf-template.php

index fdf4d6b..a967fd4 100644 (file)
@@ -8,13 +8,6 @@
     <div id="head-img">
         <?php echo glm_get_background(); ?>
     </div>
-    <div class="row">
-<!--
-        <div id="golf-logo-img" class="small-12 columns">
-            <img src="<?php //bloginfo('template_url'); ?>/assets/Central_Swing_Logo-resized.jpg">
-        </div>
--->
-    </div>
     <div class="row">
         <img class="orb-shadow" src="<?php bloginfo('template_url'); ?>/assets/shadow-lrg.jpg">
     </div>
                 ?>
             </div>
             <div class="row">
-                <?php
-                get_template_part('parts/glm-blocks');
-                ?>
+                <?php if (is_page(array(3041, 274))) { ?>
+                    <?php get_template_part('parts/glm-blocks'); ?>
+                <?php } else { ?>
+                
+                <?php } ?>
             </div>
             <div class="row">
                 <div id="main-content" class="small-12 columns">