From: Laury GvR Date: Mon, 13 May 2019 20:39:18 +0000 (-0400) Subject: New default header image added X-Git-Tag: v1.0.0^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=438258d9519d7f050e3f6702d0de1dde9a2cc005;p=WP-Themes%2Fuptravel.git New default header image added --- diff --git a/assets/default-header.jpg b/assets/default-header.jpg deleted file mode 100644 index 730d262..0000000 Binary files a/assets/default-header.jpg and /dev/null differ diff --git a/assets/default-header.png b/assets/default-header.png new file mode 100644 index 0000000..9fb9573 Binary files /dev/null and b/assets/default-header.png differ diff --git a/functions.php b/functions.php index eef2234..aea8f47 100644 --- a/functions.php +++ b/functions.php @@ -105,9 +105,9 @@ function glm_get_header() { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "interior-featured"); echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "'; } else if ( is_post_type( 'post' ) ) { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:400px;padding:0;padding-bottom:400px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 400px;"'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:200px;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;"'; } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:400px;padding:0;padding-bottom:400px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 400px;"'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:200px;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;"'; echo ' class="no-featured"'; } echo '>'; @@ -123,7 +123,7 @@ function glm_get_header() { // $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); // echo 'F'; // } else { -// echo ''; +// echo ''; // } // echo '
'; // echo '
';