From: Anthony Talarico Date: Wed, 25 Jan 2017 21:03:22 +0000 (-0500) Subject: removing searchFilter function from functions.php as it was preventing the X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=98a2017e90e4c5772049b5f4608e8da6c0ac3726;p=WP-Themes%2Fglmthemes%2Fcrawfordcounty-theme.git removing searchFilter function from functions.php as it was preventing the topbar from showing when the search GET was set to blog --- 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.