diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index b64ba1634a..28ef45cb19 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -470,7 +470,10 @@ function twentyfourteen_body_classes( $classes ) { if ( is_archive() || is_search() || is_home() ) $classes[] = 'list-view'; - if ( is_page_template( 'full-width-page.php' ) || is_page_template( 'contributor-page.php' ) || is_attachment() ) + if ( ( ! is_front_page() && ! is_active_sidebar( 'sidebar-3' ) ) + || is_page_template( 'full-width-page.php' ) + || is_page_template( 'contributor-page.php' ) + || is_attachment() ) $classes[] = 'full-width'; return $classes; diff --git a/src/wp-content/themes/twentyfourteen/sidebar-content.php b/src/wp-content/themes/twentyfourteen/sidebar-content.php index 2b3cd01296..347e15786a 100644 --- a/src/wp-content/themes/twentyfourteen/sidebar-content.php +++ b/src/wp-content/themes/twentyfourteen/sidebar-content.php @@ -5,29 +5,11 @@ * @package WordPress * @subpackage Twenty_Fourteen */ +if ( ! is_active_sidebar( 'sidebar-3' ) ) + return; ?>