fixing post id value for parameter in a function
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 14:02:57 +0000 (10:02 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Jun 2016 14:02:57 +0000 (10:02 -0400)
functions.php

index 532c3c9..cea60b0 100644 (file)
@@ -200,7 +200,7 @@ function glm_get_header() {
   
     echo '<div';
     if(is_product()){
-            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(100), "full");
+            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(101), "full");
             echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat; "';
     }
     else if ( has_post_thumbnail($post_id) && is_post_type('page')) {