From 98a2017e90e4c5772049b5f4608e8da6c0ac3726 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 25 Jan 2017 16:03:22 -0500 Subject: [PATCH] removing searchFilter function from functions.php as it was preventing the topbar from showing when the search GET was set to blog --- functions.php | 20 ++++++++++---------- parts/top-bar.php | 1 + search.php | 14 +++++--------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/functions.php b/functions.php index 48f563d..52751ed 100644 --- a/functions.php +++ b/functions.php @@ -48,16 +48,16 @@ function glm_get_menu_options() return $menu_options; } -function SearchFilter($query) { - if(isset($_GET['searchType'])) { - $searchType = $_GET['searchType']; - if ($searchType == 'blog' && !is_admin()) { - $query->set('post_type', 'post'); - } - } - return $query; -} -add_filter('pre_get_posts','SearchFilter'); +//function SearchFilter($query) { +// if(isset($_GET['searchType'])) { +// $searchType = $_GET['searchType']; +// if ($searchType == 'blog' && !is_admin()) { +// $query->set('post_type', 'post'); +// } +// } +// return $query; +//} +//add_filter('pre_get_posts','SearchFilter'); add_theme_support('post-thumbnails'); $defaults = array( 'default-color' => '', diff --git a/parts/top-bar.php b/parts/top-bar.php index a99ded2..f0a49db 100644 --- a/parts/top-bar.php +++ b/parts/top-bar.php @@ -8,3 +8,4 @@ Menu + diff --git a/search.php b/search.php index f550c74..8075934 100644 --- a/search.php +++ b/search.php @@ -1,17 +1,13 @@ -
- - - -
+
-
- -
- +
+ +
+

Please enter a query in the search box.

-- 2.17.1