adjusted functions.php to remove featured image from header
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 4 Dec 2015 16:38:30 +0000 (11:38 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 4 Dec 2015 16:38:30 +0000 (11:38 -0500)
functions.php
single.php

index 18a3df0..ee843b0 100644 (file)
@@ -100,12 +100,12 @@ function glm_site_scripts()
 function glm_get_header() {
     echo '<div';
 
-    if (has_post_thumbnail()) {
-            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-            echo ' id="feature-image" style="background-image: url('.$image_data[0].');height:100%;padding:0;background-position:top center;background-size:cover;background-repeat:no-repeat;min-height: 270px;max-height: 630px;"';
-    } else {
+    //if (has_post_thumbnail()) {
+          //  $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
+           // echo ' id="feature-image" style="background-image: url('.$image_data[0].');height:100%;padding:0;background-position:top center;background-size:cover;background-repeat:no-repeat;min-height: 270px;max-height: 630px;"';
+   // } else {
             echo ' id="feature-image" style="background-image: url('.get_template_directory_uri().'/assets/slide-6.jpg);height:100%;padding:0;background-position:top center;background-size:cover;background-repeat:no-repeat;min-height: 270px;max-height: 630px;"';
-    }
+    
     echo '>';
     echo '</div>';
     echo '<div class="row">';
index beaa89c..91aac42 100644 (file)
@@ -1,7 +1,7 @@
 <?php get_header(); ?>
 <header>
     <?php get_template_part('parts/top-bar_main');?>
-    <?php //get_template_part('parts/head-image');?>
+    <?php get_template_part('parts/head-image');?>
 </header>
 <?php get_template_part('parts/off-canvas_main');?>
     <main class="blog-single">