Update for no default image
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 28 Oct 2015 19:59:27 +0000 (15:59 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 28 Oct 2015 19:59:38 +0000 (15:59 -0400)
functions.php

index f351072..85b142b 100644 (file)
@@ -210,7 +210,7 @@ set_post_thumbnail_size(120, 100, true);
  */
 function glm_site_scripts()
 {
-  
+
     wp_enqueue_script('jquery-ui-datepicker');
     wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
 
@@ -237,9 +237,9 @@ function glm_site_scripts()
 function glm_get_background() {
     if (has_post_thumbnail()) {
         $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-        $imageUrl = '<div class="featured-image" style="background: url(\''.$image_data[0].'\') no-repeat scroll 0px 0px / cover;;"></div>';
+        $imageUrl = '<div class="featured-image" style="background: url(\''.$image_data[0].'\') no-repeat scroll 0px 0px / cover;"></div>';
     } else {
-        $imageUrl = '<div class="featured-image" style="background: url(\''.get_template_directory_uri().'/assets/default.jpg\') no-repeat scroll 0px bottom / cover;;"></div>';
+        $imageUrl = '';
     }
     return $imageUrl;
 }