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:
61b57df
)
Default header for pages without featured image
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 22 Jan 2015 22:06:54 +0000
(17:06 -0500)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 22 Jan 2015 22:06:54 +0000
(17:06 -0500)
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/page.php
index
a4580d2
..
0e35664
100755
(executable)
--- a/
page.php
+++ b/
page.php
@@
-8,7
+8,8
@@
echo ' style="background: url('.$image_data[0].'); height: '.$image_data[2].'px;max-height: 200px; background-size: cover; "';
}
else {
- echo ' style="background: url("../assets/default-header.jpg") repeat scroll 0 0 / cover rgba(0, 0, 0, 0); max-height:200px;"';
+
+ echo ' style="background: url('.get_template_directory_uri().'/assets/default-header.jpg);height:200px; background-size:cover; "';
}
?>
>