Default header for pages without featured image
authorLaury GvR <laury@gaslightmedia.com>
Thu, 22 Jan 2015 22:06:54 +0000 (17:06 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 22 Jan 2015 22:06:54 +0000 (17:06 -0500)
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; "';
             }
         ?>
         >