From 4ad77cc2e9983964cde2c5af0edcf34b81518ffc Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Thu, 18 May 2017 15:58:25 -0400 Subject: [PATCH] Feature image update. I updated the featured image shortcode in the fuctions file with Steve's help. --- functions.php | 2 +- sections/blog-archive.php | 2 +- sections/blog-home.php | 2 +- sections/blog-single.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 78d3e81..6cd8092 100644 --- a/functions.php +++ b/functions.php @@ -79,7 +79,7 @@ function glm_site_scripts() function glm_get_header() { echo 'ID ) !== 116)) { + if (has_post_thumbnail() && (wp_get_post_parent_id( $post->ID ) !== 116) && $post->post_type == 'page') { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); echo ' style="background-image: url('.$image_data[0].');padding:0;padding-bottom:25%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height:450px;margin:0 auto;height:100%; "'; } else { diff --git a/sections/blog-archive.php b/sections/blog-archive.php index 7db8fbc..ed4dfbc 100644 --- a/sections/blog-archive.php +++ b/sections/blog-archive.php @@ -1,6 +1,6 @@
diff --git a/sections/blog-home.php b/sections/blog-home.php index c3e3121..79db0ef 100644 --- a/sections/blog-home.php +++ b/sections/blog-home.php @@ -1,6 +1,6 @@