From 806eed6a297b4e33f187205aac893e57c76ba7a0 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 3 Feb 2015 08:58:35 -0500 Subject: [PATCH] Featured images and default headers now same height --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index deb37f5..e9a9636 100755 --- a/functions.php +++ b/functions.php @@ -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 ''; -- 2.17.1