Sidebars no longer showing on events-template.php
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 Aug 2017 20:33:03 +0000 (16:33 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 9 Aug 2017 20:33:03 +0000 (16:33 -0400)
events-template.php
sections/entity-interior.php

index 4a70b9a..d9427a4 100644 (file)
@@ -2,6 +2,5 @@
 /*
 Template Name: Events Template
 */
-$template !== 'no-sidebars.php';
 get_template_part('index');
 ?>
\ No newline at end of file
index d87bf2b..38c86c6 100644 (file)
@@ -7,10 +7,10 @@
         <div class="row column">
             <?php if(!is_front_page()) {
 
-                if(!$is_glm_associate_required_page && $template !== 'no-sidebars.php' ){
+                if(!$is_glm_associate_required_page && $template !== 'no-sidebars.php' && $template !== 'events-template.php'){
                     get_template_part('parts/left-sidebar');
                 }
-                if($is_glm_associate_required_page || $template == 'no-sidebars.php') {
+                if($is_glm_associate_required_page || $template == 'no-sidebars.php' || $template == 'events-template.php' ) {
                     // Only gets full width if required glm associate page or using the no-sidebars template
                     echo "<div class=\"small-12 columns\">";
                 } else if($right_sidebar) {
@@ -31,7 +31,7 @@
                 get_template_part('parts/main-content');
                 echo "</div>";
 
-                if($right_sidebar && $template !== 'no-sidebars.php'){
+                if ($right_sidebar && $template !== 'no-sidebars.php' && $template !== 'events-template.php' ) {
                     echo "<div id='sidebar' class='small-12 medium-4 large-3 show-for-large columns'>";
                     get_sidebar();
                     echo "</div>";