adding new images for blog and page default header images
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 May 2017 20:19:14 +0000 (16:19 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 May 2017 20:19:14 +0000 (16:19 -0400)
larger images provided for the blog home and default pages changed in the functions file

assets/News-header.png [deleted file]
assets/blog-default.png [new file with mode: 0644]
assets/page-default.png [new file with mode: 0644]
functions.php

diff --git a/assets/News-header.png b/assets/News-header.png
deleted file mode 100644 (file)
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 (file)
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 (file)
index 0000000..505143c
Binary files /dev/null and b/assets/page-default.png differ
index 28f8589..eb528e7 100644 (file)
@@ -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 '>';