From 687702ea2f98c786170f94737f94befc04582ad0 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 1 May 2018 17:07:45 -0400 Subject: [PATCH] Default header also changed for blog home/archive --- functions.php | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/functions.php b/functions.php index b74a9c8..f0b296c 100644 --- a/functions.php +++ b/functions.php @@ -135,26 +135,6 @@ class GLM_Members_Only_Walker extends Walker_Nav_Menu { endif; /* Header for posts*/ -//function glm_get_header() { -// global $post; -// $post_id = $post->ID; -// echo ''; -// echo ''; -//} function glm_get_featured() { global $post; $post_id = $post->ID; @@ -166,13 +146,10 @@ function glm_get_featured() { if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); $imageUrl = ''; - } elseif(is_single() && is_post_type('ai1ec_event')){ + } elseif(is_single() && is_post_type('ai1ec_event')) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(123), "full"); $imageUrl = ''; - } elseif(is_post_type('post')) { - $imageUrl = ''; - } - else { + } else { $imageUrl = ''; } return $imageUrl; -- 2.17.1