added conditional to keep text separator in glm blocks for home page only
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 1 Dec 2015 15:06:49 +0000 (10:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 1 Dec 2015 15:06:49 +0000 (10:06 -0500)
parts/glm-blocks.php

index 018dd22..e830caa 100644 (file)
@@ -56,9 +56,10 @@ default:
             </a>
              <?php endif;?>
         <p><?php echo $block->post_content . $block->post_excerpt;?></p>
-        
+        if(<?php is_home(); ?>):?>
         <div class="separator text-center"><img src="<?php bloginfo('template_url'); ?>/assets/fancy-divider-large.jpg"></div>
     </div>
+    <?php endif;?>
     <?php endforeach;?>
 </div>