Skip to content

Instantly share code, notes, and snippets.

@ericnicolaas
Last active August 31, 2016 00:08
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 ericnicolaas/92a2ececc4512a167eb4 to your computer and use it in GitHub Desktop.
Save ericnicolaas/92a2ececc4512a167eb4 to your computer and use it in GitHub Desktop.
Salient campaign page template
<?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(); ?>
@ericnicolaas
Copy link
Author

If you want a version without a sidebar, you can use this template instead: https://gist.github.com/ericnicolaas/41530a8e4cb3acd03ad72e228f4bbc04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment