Skip to content

Commit

Permalink
removing sidebar from single-post single-column template + WP coding …
Browse files Browse the repository at this point in the history
…standards updates
  • Loading branch information
rclations committed Sep 7, 2016
1 parent 5900d73 commit acf271b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
17 changes: 6 additions & 11 deletions partials/content-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
<h5 class="top-tag"><?php largo_top_term(); ?></h5>

<h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1>
<?php if ( $subtitle = get_post_meta( $post->ID, 'subtitle', true ) )
echo '<h2 class="subtitle">' . $subtitle . '</h2>';
?>
<?php if ( $subtitle = get_post_meta( $post->ID, 'subtitle', true ) ) : ?>
<h2 class="subtitle"><?php echo $subtitle ?></h2>
<?php endif; ?>
<h5 class="byline"><?php largo_byline(); ?></h5>

<?php
if ( !of_get_option( 'single_social_icons' ) == false ) {
largo_post_social_links();
}
?>
<?php if ( ! of_get_option( 'single_social_icons' ) == false ) {
largo_post_social_links();
} ?>

<?php largo_post_metadata( $post->ID ); ?>

Expand All @@ -36,9 +34,6 @@
do_action('largo_after_hero');
?>


<?php get_sidebar(); ?>

<section class="entry-content clearfix" itemprop="articleBody">

<?php largo_entry_content( $post ); ?>
Expand Down
5 changes: 3 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
/**
* The Template for displaying all single posts.
*/
if ( of_get_option( 'single_template' ) == 'classic' )
if ( 'classic' == of_get_option( 'single_template' ) ) {
get_template_part( 'single-two-column' );
else
} else {
get_template_part( 'single-one-column' );
}

0 comments on commit acf271b

Please sign in to comment.