Overview
What This Section Configures
The Search tab under Appearance → Theme Options controls how the site's search experience is structured and presented to visitors. This includes which locations visitors can search (and what those searches link to), how many results appear per row at different screen sizes, and visual details like spacing and accent imagery for the search form.
When to Open This Section
Open the Search settings when you need to:
- Add, remove, or reorder searchable locations (for example, adding a partner site or external catalog alongside the default site search)
- Change which search location is pre-selected when a visitor opens the search UI
- Adjust how many result cards appear side-by-side on tablet vs. desktop viewports
- Set the gap between result cards in the grid
- Customize the label on the button that closes the search overlay
- Add a decorative background image to the search form area
Capabilities at a Glance
- Search locations — Define one or more searchable destinations, each with its own URL pattern and short/long display label. Locations are sortable, so you control the order visitors see them.
- Default location — Choose which search location is active by default when the search UI opens.
- Responsive result grid — Independently set the number of result columns displayed at four breakpoints (576 px, 768 px, 992 px, and 1200 px and up), with column counts from 1 to 6.
- Grid gap — Control the spacing between result cards, from no gap up to double the base spacing.
- Close search label — Customize the text on the control that dismisses the search overlay.
- Form wrapper accent image — Optionally overlay a decorative image on the search form's background area.
Technical Documentation
Search Fields
Locations
- Field ID:
search_locations - Type: Repeater group (cloneable, sortable, collapsible)
- Default: One entry pre-populated with
href_base=/?s=,href_tail= (empty),label_short=This Site,label_long=Search This Site
Usage — Defines the set of search destinations available in the site's search interface. Each entry represents one searchable location (e.g. "This Site", an external database, a partner site). Entries are displayed as options the visitor can select when performing a search. The group title in the admin panel reflects the entry's Label (short) value, making it easy to identify each location at a glance. Entries can be reordered via drag-and-drop; that order is reflected in the front-end location chooser.
Sub-fields — Each location entry contains the following fields:
Notes — At least the default "This Site" entry is pre-populated. Additional locations can be added by cloning the group. Removing all entries may cause the search interface to fall back to default behavior; maintain at least one active location.
Default Location
- Field ID:
search_default_location - Type: Single-select dropdown
- Default:
this-site
Usage — Sets which search location is pre-selected when the search interface opens. The options available are dynamically populated from the configured Locations entries (via OptionsGetters::get_default_search_location_options()), so this list reflects whatever locations are currently defined above.
Options — Populated dynamically from the Locations repeater. Select the location that should be active by default when a visitor opens the search panel.
Display Count — 576px & Up
- Field ID:
search_display_count_sm_up - Type: Single-select dropdown
- Default:
2
Usage — Controls how many search result cards are displayed per row in the results grid on viewports 576px wide and above (small breakpoint). Sets the grid column count at this breakpoint.
Options — 1, 2, 3, 4, 5, or 6 columns.
Display Count — 768px & Up
- Field ID:
search_display_count_md_up - Type: Single-select dropdown
- Default:
3
Usage — Controls the number of search result cards per row at the medium breakpoint (768px and above).
Options — 1, 2, 3, 4, 5, or 6 columns.
Display Count — 992px & Up
- Field ID:
search_display_count_lg_up - Type: Single-select dropdown
- Default:
4
Usage — Controls the number of search result cards per row at the large breakpoint (992px and above).
Options — 1, 2, 3, 4, 5, or 6 columns.
Display Count — 1200px & Up
- Field ID:
search_display_count_xl_up - Type: Single-select dropdown
- Default:
4
Usage — Controls the number of search result cards per row at the extra-large breakpoint (1200px and above).
Options — 1, 2, 3, 4, 5, or 6 columns.
Grid Gap
- Field ID:
search_grid_gap - Type: Single-select dropdown
- Default:
gap--1(Base)
Usage — Sets the spacing between cards in the search results grid. Applies a CSS gap utility class to the grid container, controlling both horizontal and vertical spacing between result cards at all breakpoints.
Options:
None— No gap between cards; cards sit flush against each other.Quarter— Very tight gap (¼ of the base spacing unit).Half— Narrow gap (½ of the base spacing unit).Base— Standard gap equal to the theme's base spacing unit. (Default)Double— Wide gap equal to twice the base spacing unit.
Close Search Label
- Field ID:
search_search_close_label - Type: Text field
- Default: (none set)
Usage — Sets the text label displayed on the button or control that dismisses/closes the search panel. Useful for localization or branding adjustments (e.g. changing "Close" to "Cancel" or a non-English equivalent).
Form Wrapper Accent Image
- Field ID:
search_form_wrapper_accent_image_id - Type: Image upload (single image)
- Default: (none)
Usage — Selects a decorative image overlaid on the search form's background area. When set, the chosen image is rendered as an accent/overlay on top of the form wrapper's background, adding a visual design element behind or around the search input. Accepts a single image from the WordPress media library.
Notes — This is a purely decorative element. The description shown in the admin reads: "Select an image to overlay the form background." Leaving this field empty results in no accent image being applied.
Tab Organization
The Search settings panel is divided into three tabs:
- Locations — Contains the Locations repeater group and the Default Location selector. Use this tab to define where searches are sent and which destination is pre-selected.
- Grid — Contains the four Display Count breakpoint selectors and the Grid Gap selector. Use this tab to control how search results are arranged in the responsive grid layout.
- Appearance — Contains the Close Search Label text field and the Form Wrapper Accent Image upload. Use this tab to control search UI copy and decorative imagery.