Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created April 24, 2018 20:54
Show Gist options
  • Save ideadude/0fcdd3d2836679c86d16be2cfbbd06a0 to your computer and use it in GitHub Desktop.
Save ideadude/0fcdd3d2836679c86d16be2cfbbd06a0 to your computer and use it in GitHub Desktop.
Memberlite Full Width Template for Posts, Pages, and Products
<?php
/**
Template Name: Full Width
Template Post Type: post, page, product
**/
get_header(); ?>
<div id="primary" class="large-12 columns content-area">
<?php do_action('before_main'); ?>
<main id="main" class="site-main" role="main">
<?php do_action('before_loop'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php
//If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
<?php do_action('after_loop'); ?>
</main><!-- #main -->
<?php do_action('after_main'); ?>
</div><!-- #primary -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment