projects
/
WP-Themes
/
RecycleEmmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21d722f
)
Featured image inline styling
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 13 Jan 2015 18:30:47 +0000
(13:30 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 13 Jan 2015 18:30:47 +0000
(13:30 -0500)
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/page.php
index
216fc92
..
b659096
100755
(executable)
--- a/
page.php
+++ b/
page.php
@@
-5,7
+5,7
@@
<?php
if (has_post_thumbnail()) {
$image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
- echo ' style="background: url('.$image_data[0].');
min-height: '.$image_data[2].'px;max-height: 400px
; "';
+ echo ' style="background: url('.$image_data[0].');
height: '.$image_data[2].'px;max-height: 400px; background-size: cover
; "';
}
else {
echo ' style="display: none;"';