giving all pages sidebars by default, if they don't want sidebars, the no sidebars template can
be assigned
--- /dev/null
+<?php
+/*
+Template Name: No Sidebars
+*/
+get_template_part('index');
+?>
\ No newline at end of file
<div class="row column">
<?php if(!is_front_page()) {
- if($template === 'sidebars.php'){
+ if($template !== 'no-sidebars.php'){
get_template_part('parts/left-sidebar');
}
if($sidebar){
get_template_part('parts/main-content');
echo "</div>";
- if($sidebar && $template === 'sidebars.php'){
+ if($sidebar && $template !== 'no-sidebars.php'){
echo "<div id='sidebar' class='small-12 medium-4 large-3 show-for-large columns'>";
get_sidebar();
echo "</div>";
+++ /dev/null
-<?php
-/*
-Template Name: Sidebars
-*/
-get_template_part('index');
-?>
\ No newline at end of file