Featured images and default headers now same height
authorLaury GvR <laury@gaslightmedia.com>
Tue, 3 Feb 2015 13:58:35 +0000 (08:58 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 3 Feb 2015 13:58:35 +0000 (08:58 -0500)
functions.php

index deb37f5..e9a9636 100755 (executable)
@@ -118,7 +118,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:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;';
     } else {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;';
+            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;';
     }
     echo 'max-height: 300px; ">';
     echo '</div>';