{"id":2270,"date":"2026-10-20T08:29:35","date_gmt":"2026-10-20T07:29:35","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/remove-near-field-from-search-bar\/"},"modified":"2026-10-20T08:40:41","modified_gmt":"2026-10-20T07:40:41","slug":"remove-near-field-from-search-bar","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/remove-near-field-from-search-bar\/","title":{"rendered":"How to remove the Near field from the GeoDirectory search bar"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The GD &gt; Search block has a setting that hides the Near field, so you do not need CSS for this.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the page, template or widget area that contains the search bar.<\/li>\n\n\n\n<li>Select the GD &gt; Search block (or open the GD &gt; Search widget).<\/li>\n\n\n\n<li>Tick Hide Near Search Input.<\/li>\n\n\n\n<li>Save, then clear your site cache if you use one.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you use the shortcode, add the <code>hide_near_input<\/code> option:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_search hide_near_input=&quot;1&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Change every search bar on the site, as the search results template and your header can each have their own. If the search bar comes from your theme&#8217;s settings, look for the GD &gt; Search block in the theme or template that outputs it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the Near field hidden, visitors search by keyword only. The setting next to it, Hide Main Search Input, does the opposite and leaves only Near. To keep Near but change its placeholder text, go to GeoDirectory &gt; Settings &gt; General &gt; Search. For other changes to the look of the bar, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/advanced-search\/how-to-adjust-the-gd-search-bar-with-css\/\">How to Adjust the GD Search Bar with CSS<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GD &gt; Search block has a setting that hides the Near field, so you do not need CSS for this. If you use the shortcode, add the hide_near_input option: Change every search bar on the site, as the search results template and your header can each have their own. If the search bar comes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2270","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2270"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2270\/revisions"}],"predecessor-version":[{"id":2682,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2270\/revisions\/2682"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2270"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2270"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}