{"id":2670,"date":"2026-10-20T08:35:26","date_gmt":"2026-10-20T07:35:26","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/remove-the-near-field-from-the-search-bar\/"},"modified":"2026-10-20T08:40:41","modified_gmt":"2026-10-20T07:40:41","slug":"remove-the-near-field-from-the-search-bar","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/remove-the-near-field-from-the-search-bar\/","title":{"rendered":"How to remove the location (Near) field from the search bar"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Tick Hide Near Search Input in the settings of the GD &gt; Search block or widget, or add <code>hide_near_input=&quot;1&quot;<\/code> to the shortcode:<\/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\">The search bar then has just the keyword box and the search button, which suits a directory that covers one city and where people search by name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Each GD &gt; Search on your site has its own settings, so change every one you use: the search page template, your header, sidebars and so on. Other location widgets, such as Location Manager&#8217;s GD &gt; Near Me Button, aren&#8217;t affected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Keeping the Near field for a one-city directory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Near field also takes street names and landmarks, so visitors can search for restaurants near a particular street. If you keep it, enter your city in Search near additional at GeoDirectory &gt; Settings &gt; General &gt; Search (click Show Advanced). GeoDirectory adds it to whatever the visitor types, so &#8220;Main Street&#8221; is looked up in your city and not somewhere else.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Neighbourhood links<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you use Location Manager with neighbourhoods, you can list them as links near the search bar so visitors can browse by area:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_locations what=&quot;neighbourhood&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-search\/\">GD &gt; Search<\/a> for the other search bar options, and <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> to change its layout.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tick Hide Near Search Input in the settings of the GD &gt; Search block or widget, or add hide_near_input=&quot;1&quot; to the shortcode: The search bar then has just the keyword box and the search button, which suits a directory that covers one city and where people search by name. Each GD &gt; Search on your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-2670","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-core-widgets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2670","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=2670"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2670\/revisions"}],"predecessor-version":[{"id":2813,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2670\/revisions\/2813"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2670"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2670"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}