added glm-header after adjusting the function to exclude featured images
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 19:17:32 +0000 (14:17 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Nov 2015 19:17:32 +0000 (14:17 -0500)
functions.php
single.php

index 61b5421..7c6f2c8 100644 (file)
@@ -81,8 +81,9 @@ function glm_get_header() {
     echo '<div';
 
     if (has_post_thumbnail()) {
-            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-            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; "';
+           // $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 ' 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;"';
             echo ' class="no-featured"';
index 84e3970..7a50501 100644 (file)
@@ -1,4 +1,5 @@
 <?php get_header(); ?>
+   <?php glm_get_header(); ?>
     <main class="blog-single">    
         <div class="row">
             <div id="blog-posts-over" class="small-12 medium-9 columns">