Hide both sidebars on event template.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Feb 2017 13:38:02 +0000 (08:38 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 7 Feb 2017 13:38:02 +0000 (08:38 -0500)
If it's the event template don't output the sidebars.

parts/sidebar.php

index 5b2a364..6b1eb78 100644 (file)
@@ -10,9 +10,9 @@
         <?php get_template_part("parts/frontpage-sidebar-dropdown") ?>
     </form>
 </div>
-<?php } else { ?>
+<?php } else if ( get_page_template_slug( $post->ID ) !== "events-template.php" ) { ?>
 
 <div id="contact" class="medium-4 large-3 columns">
     <p><?php echo the_field('sidebar'); ?></p>
 </div>
-<?php } ?>  
\ No newline at end of file
+<?php } ?>