From: Anthony Talarico Date: Fri, 12 Aug 2016 17:53:27 +0000 (-0400) Subject: reduced min height for landing page elements, added default image if a featured image... X-Git-Tag: v1.0.0^2~132 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a8f7e3ff1d72e17b394221a3b886927e134bbd9d;p=WP-Themes%2Fpetoskeyarea.git reduced min height for landing page elements, added default image if a featured image is not set for the child pages --- 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;