From: Laury GvR Date: Thu, 22 Jan 2015 21:52:51 +0000 (-0500) Subject: Default header for pages without featured image X-Git-Tag: v1.0.0~46 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a06801d357fc56c616067baa01a3e8e23f11a2e6;p=WP-Themes%2FRecycleEmmet.git Default header for pages without featured image --- diff --git a/assets/default-header.jpg b/assets/default-header.jpg new file mode 100644 index 0000000..1b33e3e Binary files /dev/null and b/assets/default-header.jpg differ diff --git a/page.php b/page.php index b659096..7accc37 100755 --- a/page.php +++ b/page.php @@ -5,10 +5,10 @@ ID), "full"); - echo ' style="background: url('.$image_data[0].'); height: '.$image_data[2].'px;max-height: 400px; background-size: cover; "'; + echo ' style="background: url('.$image_data[0].'); height: '.$image_data[2].'px;max-height: 200px; background-size: cover; "'; } else { - echo ' style="display: none;"'; + echo ' style="background: url("http://dev.www.emmetcounty.org/recycling/wp-content/uploads/sites/4/2015/01/beach-small-header.jpg") repeat scroll 0 0 / cover rgba(0, 0, 0, 0); max-height:200px;"'; } ?> >