projects
/
WP-Themes
/
DarkSkiesEmmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086b0f0
)
testing the blog background image fix for archives and categories
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 11 Dec 2018 14:36:52 +0000
(09:36 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 11 Dec 2018 14:36:52 +0000
(09:36 -0500)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
efb1852
..
a837069
100644
(file)
--- 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 = '<div class="featured-image" style="background: url(\''.$image_data[0].'\') no-repeat center center / cover"></div>';
} else {