From: Ian Weller Date: Tue, 18 Oct 2016 20:59:37 +0000 (-0400) Subject: made the padding bottom 25% X-Git-Tag: v1.0.0^2~53 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a764538dba402617611c32fcb622e2ee5d808a6b;p=WP-Themes%2Fmackinacbridge.git made the padding bottom 25% I adjusted the header image to have a padding bottom of 25% istead of 15%. --- diff --git a/functions.php b/functions.php index 8fac60a..4fa518c 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 0 15%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "'; + echo ' style="background-image: url('.$image_data[0].');padding:0 0 25%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "'; } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/DI-00889-132-1.jpg);padding:0 0 15%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/DI-00889-132-1.jpg);padding:0 0 25%;background-position: center center;background-repeat:no-repeat;max-height: 300px;background-size: cover;margin: 0 auto; "'; echo ' class="no-featured"'; } echo '>';