Created
August 31, 2016 00:07
-
-
Save ericnicolaas/41530a8e4cb3acd03ad72e228f4bbc04 to your computer and use it in GitHub Desktop.
Salient campaign page template — full-width template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file should be saved as single-campaign.php, preferably in your Salient child theme. | |
*/ | |
get_header(); ?> | |
<?php nectar_page_header($post->ID); ?> | |
<div class="container-wrap"> | |
<div class="container main-content"> | |
<div class="row"> | |
<?php if ( has_post_thumbnail() ) : | |
echo get_the_post_thumbnail( $post->ID, 'large' ); // Instead of 'large', you could also use 'medium' or 'full' | |
endif ?> | |
<div id="post-area" class="col span_12"> | |
<?php | |
if(have_posts()) : while(have_posts()) : the_post(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; endif; ?> | |
</div><!--/span_12--> | |
</div><!--/row--> | |
</div><!--/container--> | |
</div><!--/container-wrap--> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This version does not have a sidebar. If you want a sidebar, see https://gist.github.com/ericnicolaas/92a2ececc4512a167eb4