New default header image added
authorLaury GvR <laury@gaslightmedia.com>
Mon, 13 May 2019 20:39:18 +0000 (16:39 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 13 May 2019 20:39:18 +0000 (16:39 -0400)
assets/default-header.jpg [deleted file]
assets/default-header.png [new file with mode: 0644]
functions.php

diff --git a/assets/default-header.jpg b/assets/default-header.jpg
deleted file mode 100644 (file)
index 730d262..0000000
Binary files a/assets/default-header.jpg and /dev/null differ
diff --git a/assets/default-header.png b/assets/default-header.png
new file mode 100644 (file)
index 0000000..9fb9573
Binary files /dev/null and b/assets/default-header.png differ
index eef2234..aea8f47 100644 (file)
@@ -105,9 +105,9 @@ function glm_get_header() {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "interior-featured");
             echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "';
     } else if ( is_post_type( 'post' ) ) {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:400px;padding:0;padding-bottom:400px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 400px;"';
+            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:200px;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;"';
     } else {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:400px;padding:0;padding-bottom:400px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 400px;"';
+            echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:200px;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;"';
             echo ' class="no-featured"';
     }
     echo '>';
@@ -123,7 +123,7 @@ function glm_get_header() {
 //            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
 //            echo '<img src="'.$image_data[0].'" style="no-repeat;max-height:400px;">F';
 //    } else {
-//            echo '<img src="'.get_template_directory_uri().'/assets/default-header.gif" style="max-height:400px;">';
+//            echo '<img src="'.get_template_directory_uri().'/assets/default-header.png" style="max-height:400px;">';
 //    }
 //    echo '<div class="row">';
 //    echo '<div class="small-12 columns">';