Bkgrd now accepts smaller images (and blows them up) without repeating.
authorLaury GvR <laury@gaslightmedia.com>
Mon, 15 Jun 2015 20:37:33 +0000 (16:37 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 15 Jun 2015 20:37:33 +0000 (16:37 -0400)
lib/theme.php

index 7ef381c..769dbb2 100644 (file)
@@ -67,7 +67,7 @@ function glm_get_background() {
         $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
         $imageUrl = '<div class="featured-image" style="background: url(\''.$image_data[0].'\')"></div>';
     } else {
-        $imageUrl = '<div class="featured-image" style="background: url(\''.get_template_directory_uri().'/assets/backgrounds/Default.jpg\')"></div>';
+        $imageUrl = '<div class="featured-image" style="background: url(\''.get_template_directory_uri().'/assets/backgrounds/Default.jpg\') no-repeat scroll 0 0 / cover"></div>';
     }
     return $imageUrl; 
 }