Last active
August 31, 2016 00:08
-
-
Save ericnicolaas/92a2ececc4512a167eb4 to your computer and use it in GitHub Desktop.
Salient campaign page 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_9"> | |
<?php | |
if(have_posts()) : while(have_posts()) : the_post(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; endif; ?> | |
</div><!--/span_9--> | |
<div id="sidebar" class="col span_3 col_last"> | |
<?php get_sidebar(); ?> | |
</div><!--/span_9--> | |
</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
If you want a version without a sidebar, you can use this template instead: https://gist.github.com/ericnicolaas/41530a8e4cb3acd03ad72e228f4bbc04