From: Laury GvR Date: Thu, 22 Jan 2015 22:06:54 +0000 (-0500) Subject: Default header for pages without featured image X-Git-Tag: v1.0.0~44 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b44da0bc8cbb2573dcee4ddfe323c2b6e73d4ad3;p=WP-Themes%2FRecycleEmmet.git Default header for pages without featured image --- diff --git a/page.php b/page.php index a4580d2..0e35664 100755 --- 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; "'; } ?> >