projects
/
WP-Themes
/
saultstemarie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c919cb5
)
removing featured image from single blog page
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 21 Jan 2016 21:00:00 +0000
(16:00 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 21 Jan 2016 21:00:00 +0000
(16:00 -0500)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
2ccfd99
..
3d694ab
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-90,7
+90,7
@@
function glm_get_header() {
else
$post_id = $post->ID;
- if (has_post_thumbnail($post_id) && (!(is_home()) )) {
+ if (has_post_thumbnail($post_id) && (!(is_home()) )
&& (!(is_single()))
) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full");
echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "';
} else {