From: Steve Sutton Date: Thu, 25 Aug 2016 20:49:19 +0000 (-0400) Subject: Remove padding for no image X-Git-Tag: v1.0.0^2~84 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2a280c4d95c89fc51cf16241bc100a12456ccf47;p=WP-Themes%2Fpetoskeyarea.git Remove padding for no image We do not need big empty space --- diff --git a/functions.php b/functions.php index f572c8a..edb2276 100644 --- a/functions.php +++ b/functions.php @@ -186,7 +186,7 @@ function glm_get_header() { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); echo ' style="background-image: url('.$image_data[0].');height:100%;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 630px; "'; } else { - echo ' style="background:transparent;height:100%;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 630px;"'; + echo ' style="background:transparent;height:100%;padding:0;padding-bottom:0;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 630px;"'; echo ' class="no-featured"'; } echo '>';