Add No Sidebar template

This commit is contained in:
Jeremy Dormitzer 2018-07-27 10:50:54 -04:00
parent 01ae837ded
commit 492cc37b88
2 changed files with 35 additions and 0 deletions

31
no-sidebar.php Normal file
View File

@ -0,0 +1,31 @@
<?php
/*
Template Name: No Sidebar
*/
?>
<?php
get_header();
?>
<div id="primary" class="content-area no-sidebar">
<main id="main" class="site-main">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();

View File

@ -961,6 +961,10 @@ Site content
max-width: 100%; max-width: 100%;
} }
.content-area.no-sidebar {
grid-column: 4 / 10;
}
.widget-area { .widget-area {
grid-column: 9 / 11; grid-column: 9 / 11;
max-width: 100%; max-width: 100%;