From b44da0bc8cbb2573dcee4ddfe323c2b6e73d4ad3 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 22 Jan 2015 17:06:54 -0500 Subject: [PATCH] Default header for pages without featured image --- page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; "'; } ?> > -- 2.17.1