Skip to content

Instantly share code, notes, and snippets.

@haicu
Created November 13, 2016 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haicu/0ab67b5ea35a0d5378bc586991e87704 to your computer and use it in GitHub Desktop.
Save haicu/0ab67b5ea35a0d5378bc586991e87704 to your computer and use it in GitHub Desktop.
TTB Page template without sidebar
<?php
/**
Template name: No Sidebar
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment