From acf271be3f84f8045c145b3034fc6ce38ea9059e Mon Sep 17 00:00:00 2001 From: rclations Date: Wed, 7 Sep 2016 16:57:47 -0400 Subject: [PATCH] removing sidebar from single-post single-column template + WP coding standards updates --- partials/content-single.php | 17 ++++++----------- single.php | 5 +++-- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/partials/content-single.php b/partials/content-single.php index 52b34b717..765046bae 100644 --- a/partials/content-single.php +++ b/partials/content-single.php @@ -13,16 +13,14 @@

- ID, 'subtitle', true ) ) - echo '

' . $subtitle . '

'; - ?> + ID, 'subtitle', true ) ) : ?> +

+
- + ID ); ?> @@ -36,9 +34,6 @@ do_action('largo_after_hero'); ?> - - -
diff --git a/single.php b/single.php index 487e5aeec..5a139cd0d 100644 --- a/single.php +++ b/single.php @@ -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' ); +}