-            <div id="main-content" class="small-12 columns">
-                <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <?php the_content();?>
-                <?php endwhile; else:?>
-                <p><?php _e('Sorry, no posts yet');?></p>
-                <?php endif;?>
-            </div>
\ No newline at end of file
+<?php if ( get_page_template_slug( $post->ID ) === "side-bar" ) { ?>
+    <div id="main-content" class="small-9 columns">
+<?php } else { ?>
+    <div id="main-content" class="small-12 columns">    
+<?php } ?>
+        <?php if(have_posts()) : while(have_posts()): the_post();?>
+        <?php the_content();?>
+        <?php endwhile; else:?>
+        <p><?php _e('Sorry, no posts yet');?></p>
+        <?php endif;?>
+    </div>
\ No newline at end of file