From: Anthony Talarico Date: Tue, 11 Dec 2018 14:36:52 +0000 (-0500) Subject: testing the blog background image fix for archives and categories X-Git-Tag: v1.1.35^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b90cf118e57258d841eec2785b79c857480b9ef7;p=WP-Themes%2FDarkSkiesEmmet.git testing the blog background image fix for archives and categories --- diff --git a/functions.php b/functions.php index efb1852..a837069 100644 --- a/functions.php +++ b/functions.php @@ -134,7 +134,7 @@ function glm_site_scripts() /* Header for posts*/ function glm_get_background() { - if (has_post_thumbnail()) { + if (has_post_thumbnail() && !is_archive() && !is_category()) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); $imageUrl = ''; } else {