projects
/
WP-Themes
/
originalbutterflyhouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472b89c
)
adding conditionals for is archive and category in glm_get_header
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Nov 2016 20:28:46 +0000
(15:28 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Nov 2016 20:28:46 +0000
(15:28 -0500)
lib/header.php
patch
|
blob
|
history
diff --git
a/lib/header.php
b/lib/header.php
index
377c26f
..
30c47a1
100644
(file)
--- a/
lib/header.php
+++ b/
lib/header.php
@@
-2,7
+2,7
@@
function glm_get_header() {
echo '<div';
- if (has_post_thumbnail()) {
+ if (has_post_thumbnail()
&& !is_archive && !is_category()
) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
echo ' style="background-image: url('.$image_data[0].');max-height:300px;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;border-top-left-radius: 10px; border-top-right-radius: 10px; "';
} else {