changing the blog featured image
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 May 2017 12:59:27 +0000 (08:59 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 May 2017 12:59:27 +0000 (08:59 -0400)
the header image on the blog page is being changed in the functions file

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

diff --git a/assets/News-header.png b/assets/News-header.png
new file mode 100644 (file)
index 0000000..60b63af
Binary files /dev/null and b/assets/News-header.png differ
index 0deb679..b4ae400 100644 (file)
@@ -84,7 +84,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:top center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden; "';
     } else {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/RockBandv1.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/News-header.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 '>';