From 2a280c4d95c89fc51cf16241bc100a12456ccf47 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 25 Aug 2016 16:49:19 -0400 Subject: [PATCH] Remove padding for no image We do not need big empty space --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '>'; -- 2.17.1