diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 8396a6f528..cbaeeed670 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -459,6 +459,7 @@ add_action( 'pre_get_posts', 'twentyfourteen_pre_get_posts' ); * 1. Single or multiple authors. * 2. Index views. * 3. Full-width content layout. + * 4. Presence of footer widgets. * * @param array $classes A list of existing body class values. * @return array The filtered body class list. @@ -476,6 +477,9 @@ function twentyfourteen_body_classes( $classes ) { || is_attachment() ) $classes[] = 'full-width'; + if ( is_active_sidebar( 'sidebar-4' ) ) + $classes[] = 'footer-widgets'; + return $classes; } add_filter( 'body_class', 'twentyfourteen_body_classes' ); diff --git a/src/wp-content/themes/twentyfourteen/style.css b/src/wp-content/themes/twentyfourteen/style.css index a02edfbdd0..f023d21533 100644 --- a/src/wp-content/themes/twentyfourteen/style.css +++ b/src/wp-content/themes/twentyfourteen/style.css @@ -2517,9 +2517,13 @@ span > object { float: left; line-height: 1.6363636363; margin: 0 0 0 -100%; + min-height: 100vh; padding: 0 27px; width: 128px; } + body.footer-widgets #secondary { + min-height: 0; + } .site-description { display: block; line-height: 1.6363636363;