From b90cf118e57258d841eec2785b79c857480b9ef7 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 11 Dec 2018 09:36:52 -0500 Subject: [PATCH] testing the blog background image fix for archives and categories --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.17.1