From: Ian Weller Date: Tue, 18 Oct 2016 18:10:49 +0000 (-0400) Subject: added more height to the header image X-Git-Tag: v1.0.0^2~62 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=bb1b265dfb7a71428298749dd0bb19607242a366;p=WP-Themes%2Fmackinacbridge.git added more height to the header image I changed the min-height to 430px so the default header image doesn't get cropped. --- diff --git a/functions.php b/functions.php index e54483c..558695b 100644 --- a/functions.php +++ b/functions.php @@ -237,10 +237,10 @@ function glm_get_header() { if ( has_post_thumbnail($post_id) && is_post_type('page')) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); - echo ' style="background-image: url('.$image_data[0].');padding:0;background-position: top center;background-repeat:no-repeat;min-height: 370px;width: 100%;max-width:1600px;margin: 0 auto; "'; + echo ' style="background-image: url('.$image_data[0].');padding:0;background-position: top center;background-repeat:no-repeat;min-height: 430px;width: 100%;max-width:1600px;margin: 0 auto; "'; } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0;background-position: top center;background-repeat:no-repeat;min-height: 370px;width: 100%;max-width:1600px;margin: 0 auto; "'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/Default-Featured-Image-1600px.jpg);padding:0;background-position: top center;background-repeat:no-repeat;min-height: 430px;width: 100%;max-width:1600px;margin: 0 auto; "'; echo ' class="no-featured"'; } echo '>';