Skip to content

Instantly share code, notes, and snippets.

@ericnicolaas
Created August 31, 2016 00:07
Show Gist options
  • Save ericnicolaas/41530a8e4cb3acd03ad72e228f4bbc04 to your computer and use it in GitHub Desktop.
Save ericnicolaas/41530a8e4cb3acd03ad72e228f4bbc04 to your computer and use it in GitHub Desktop.
Salient campaign page template — full-width 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_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(); ?>
@ericnicolaas
Copy link
Author

This version does not have a sidebar. If you want a sidebar, see https://gist.github.com/ericnicolaas/92a2ececc4512a167eb4

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