From 0322d44e6c055ab7fc1822f49df5c045002e97a8 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 9 Feb 2016 15:38:28 -0500 Subject: [PATCH] Removed old featured function grabbing on all pages. --- functions.php | 51 ++++++++++++++++++++------------------------------- home.php | 4 +++- index.php | 1 - search.php | 4 +++- single.php | 4 +++- 5 files changed, 29 insertions(+), 35 deletions(-) diff --git a/functions.php b/functions.php index acea239..092d849 100644 --- a/functions.php +++ b/functions.php @@ -79,26 +79,26 @@ function glm_site_scripts() /* Header for posts*/ -function glm_get_header() { - global $post; - $post_id = $post->ID; - echo ''; - echo ''; -} +//function glm_get_header() { +// global $post; +// $post_id = $post->ID; +// echo ''; +// echo ''; +//} function glm_get_featured() { if (has_post_thumbnail()) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); @@ -108,17 +108,6 @@ function glm_get_featured() { } return $imageUrl; } -// // The code below is useful when you want the image to resize to -// if (has_post_thumbnail()) { -// $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); -// echo ''; -// } else { -// echo ''; -// } -// echo '
'; -// echo '
'; -// echo '
'; -// echo '
'; add_action('wp_enqueue_scripts', 'glm_site_scripts'); diff --git a/home.php b/home.php index 973b7a0..c7cde60 100644 --- a/home.php +++ b/home.php @@ -1,5 +1,7 @@ - +
- diff --git a/search.php b/search.php index f0f4d20..6c69d82 100644 --- a/search.php +++ b/search.php @@ -1,5 +1,7 @@ - +
diff --git a/single.php b/single.php index 67e37d8..17e2231 100644 --- a/single.php +++ b/single.php @@ -1,5 +1,7 @@ - +
-- 2.17.1