fixing page template conditional that was using && is_front_page
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 12 May 2017 15:13:36 +0000 (11:13 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 12 May 2017 15:13:36 +0000 (11:13 -0400)
changed && for || in the template checking on main-content so that the template
can be used in interior pages

parts/main-content.php

index c846197..d7251a2 100644 (file)
@@ -1,4 +1,4 @@
-<?php if ( $index_template === false)  { ?>            
+<?php if (is_front_page() ||  $index_template === false)  { ?>            
             <div id="main-content" class="small-12 columns">
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php the_content();?>