Featured image inline styling
authorLaury GvR <laury@gaslightmedia.com>
Tue, 13 Jan 2015 18:30:47 +0000 (13:30 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 13 Jan 2015 18:30:47 +0000 (13:30 -0500)
page.php

index 216fc92..b659096 100755 (executable)
--- a/page.php
+++ b/page.php
@@ -5,7 +5,7 @@
         <?php
             if (has_post_thumbnail()) {
                     $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
-                    echo ' style="background: url('.$image_data[0].'); min-height: '.$image_data[2].'px;max-height: 400px; "';
+                    echo ' style="background: url('.$image_data[0].'); height: '.$image_data[2].'px;max-height: 400px; background-size: cover; "';
             }
             else {
                     echo ' style="display: none;"';