Adjusting glm get header in functions.php
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 19:29:53 +0000 (14:29 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 19:29:53 +0000 (14:29 -0500)
functions.php

index 7c6f2c8..a2198d7 100644 (file)
@@ -83,6 +83,7 @@ function glm_get_header() {
     if (has_post_thumbnail()) {
            // $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
         echo ' style="background-image: url('.get_template_directory_uri().'/assets/interior-page-header.jpg);min-height:112px;padding:0;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 300px;"';
+        echo ' class="no-featured"';
             //echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px; "';
     } else {
             echo ' style="background-image: url('.get_template_directory_uri().'/assets/interior-page-header.jpg);min-height:112px;padding:0;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 300px;"';