From: Anthony Talarico Date: Tue, 16 May 2017 12:59:27 +0000 (-0400) Subject: changing the blog featured image X-Git-Tag: v1.0.0^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7d67a9d35fb42599edbea4972335ddeaf4a230ba;p=WP-Themes%2Fgreatlakescfa.git changing the blog featured image the header image on the blog page is being changed in the functions file --- diff --git a/assets/News-header.png b/assets/News-header.png new file mode 100644 index 0000000..60b63af Binary files /dev/null and b/assets/News-header.png differ diff --git a/functions.php b/functions.php index 0deb679..b4ae400 100644 --- a/functions.php +++ b/functions.php @@ -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 '>';