From: Anthony Talarico Date: Tue, 16 May 2017 20:19:14 +0000 (-0400) Subject: adding new images for blog and page default header images X-Git-Tag: v1.0.0^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a9823e45cecb373830ce18da6b6386f532527fa8;p=WP-Themes%2Fgreatlakescfa.git adding new images for blog and page default header images larger images provided for the blog home and default pages changed in the functions file --- diff --git a/assets/News-header.png b/assets/News-header.png deleted file mode 100644 index 60b63af..0000000 Binary files a/assets/News-header.png and /dev/null differ diff --git a/assets/blog-default.png b/assets/blog-default.png new file mode 100644 index 0000000..3463555 Binary files /dev/null and b/assets/blog-default.png differ diff --git a/assets/page-default.png b/assets/page-default.png new file mode 100644 index 0000000..505143c Binary files /dev/null and b/assets/page-default.png differ diff --git a/functions.php b/functions.php index 28f8589..eb528e7 100644 --- a/functions.php +++ b/functions.php @@ -84,10 +84,10 @@ 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:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden; "'; } else if(is_post_type('post') ){ - echo ' style="background-image: url('.get_template_directory_uri().'/assets/news-gov.png);height:0;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/blog-default.png);height:0;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; echo ' class="no-featured"'; } else if(!has_post_thumbnail() && is_post_type('page')){ - echo ' style="background-image: url('.get_template_directory_uri().'/assets/Center-skinny-1.jpg);height:0;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; + echo ' style="background-image: url('.get_template_directory_uri().'/assets/page-default.png);height:0;padding:0;padding-bottom:20%;background-position:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; echo ' class="no-featured"'; } echo '>';