From a8f7e3ff1d72e17b394221a3b886927e134bbd9d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 12 Aug 2016 13:53:27 -0400 Subject: [PATCH] reduced min height for landing page elements, added default image if a featured image is not set for the child pages --- css/app.css | 2 +- landing-page.php | 13 +++++++------ scss/_main.scss | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/css/app.css b/css/app.css index 0639184..c8d5e34 100644 --- a/css/app.css +++ b/css/app.css @@ -6928,7 +6928,7 @@ area:hover { #main-content .child-page { float: left; - min-height: 265px; } + min-height: 200px; } .child-image-container { text-align: center; } diff --git a/landing-page.php b/landing-page.php index ea423ca..17a8cd2 100644 --- a/landing-page.php +++ b/landing-page.php @@ -18,7 +18,7 @@ Template Name: Landing Page 'orderby' => 'menu_order' ); - + $post_parent = $post->ID; $parent = new WP_Query( $args ); foreach ($parent as $p){ // echo '
', print_r($p), '
'; @@ -30,11 +30,12 @@ Template Name: Landing Page
have_posts() ) : ?> have_posts() ) : $parent->the_post(); ?> - - -
diff --git a/scss/_main.scss b/scss/_main.scss index 7b1b79c..a41c5d5 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -561,7 +561,7 @@ area:hover { } #main-content .child-page { float: left; - min-height: 265px; + min-height: 200px; } .child-image-container{ text-align: center; -- 2.17.1