{"id":2392,"date":"2026-10-20T08:32:20","date_gmt":"2026-10-20T07:32:20","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/edit-search-bar-text-and-fields\/"},"modified":"2026-10-20T08:41:00","modified_gmt":"2026-10-20T07:41:00","slug":"edit-search-bar-text-and-fields","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/edit-search-bar-text-and-fields\/","title":{"rendered":"How to change the search bar text, add search fields or remove a second search bar"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Change the text in the search bar<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Go to GeoDirectory &gt; Settings &gt; General &gt; Search. Search field placeholder text and Near field placeholder text are the hints shown inside the empty fields, which is a good place to tell visitors what they can type, such as &#8220;Cafes, bakeries, florists&#8221;. Search button label changes the button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a longer line of help under the bar, add a Paragraph block directly below the GD &gt; Search block on the page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove a second search bar<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Two search bars on one page nearly always means the search was added twice: once in the page content and once by a widget area, a theme header or a builder template. The default GeoDirectory location, archive and search pages already have a GD &gt; Search block in their content.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the page and look for a GD &gt; Search block or a <code>&#091;gd_search&#093;<\/code> shortcode.<\/li>\n\n\n\n<li>Check Appearance &gt; Widgets, and your theme&#8217;s header settings, for another search.<\/li>\n\n\n\n<li>Remove whichever one you do not want.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Hide the keyword or near field<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The GD &gt; Search block has Hide Main Search Input and Hide Near Search Input settings. As a 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<h2 class=\"wp-block-heading\">Add more fields<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Extra fields, for example a dropdown for day of the week or time of day, need the Advanced Search Filters add-on. It turns your custom fields into search filters, either inside the main search bar or in the filters panel that opens below it. Create the custom field first, then add it as a filter:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/advanced-search\/how-to-add-a-filter-to-the-main-search-bar\/\">How to add a filter to the main search bar<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/advanced-search\/how-to-add-a-filter-to-the-advanced-search-filters\/\">How to add a filter to the advanced search filters<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To change the size, colours or spacing 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>Change the text in the search bar Go to GeoDirectory &gt; Settings &gt; General &gt; Search. Search field placeholder text and Near field placeholder text are the hints shown inside the empty fields, which is a good place to tell visitors what they can type, such as &#8220;Cafes, bakeries, florists&#8221;. Search button label changes the [&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-2392","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\/2392","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=2392"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2392\/revisions"}],"predecessor-version":[{"id":2697,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2392\/revisions\/2697"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2392"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2392"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}