Note: While our most popular guides have been translated into Spanish, some guides are only available in English.
Search Blocks

Use Search Blocks to add search boxes to your site. You can show results from across your site or limit results to one collection page.

How search results populate

Like any search engine, Search Block results are based on the quality of content on your site. To improve results in Search Blocks, we recommend adding descriptive and accurate titles, descriptions, excerpts, tags, categories, file names, and keyword-rich content across your site.

For a full list of site content indexed for search, visit Adding search to your site.

Add a Search Block

To add a Search Block:

  1. Edit a page or post, click an insert point, and select Search from the menu. For help, visit Adding blocks.
  2. In the Content tab, you can limit results to a specific collection.
  3. Click Display to enable Quick Preview and style the search box.
  4. Click Apply to save your changes.
  1. Tap the Pages icon.
  2. Tap the title of the page you want to edit.
  3. Tap Edit or the pencil icon in the top-right corner.
  4. Tap the + icon in the top-right corner to open the block menu.
  5. Tap Search to add a Search Block.
  6. Tap Limit Results to limit results to a specific collection.
  7. Tap Display to enable Quick Preview and style the search box.
  8. Tap Done or to save your changes.

Select content to search

In the block editor, you can choose to show results from across your site or limit results to a specific collection.

Show search results from across your site

To show results from across your site, leave Search Specific Page unchecked.

Limit search results

To limit results to one specific collection:

  1. Check Search Specific Page
  2. Select one Blog, Events, Gallery, or Products Page from the list that appears below.

Show search results from across your site

To show results from across your site, leave the Search Specific Page toggle switched off.

Limit search results

To limit results to one specific collection:

  1. In the block editor, tap Limit Results.
  2. Switch the Search Specific Page toggle on.
  3. Select one Blog, Events, Gallery, or Products Page from the list that appears below.
Tip: If you select Search Specific Page, you may want to note that the Search Block will return results for a specific collection. You can do this by adding a Text Block above the Search Block that says, for example, “Search our blog.”

Enable Quick Preview

Enabling Quick Preview adds a drop-down that auto-populates results as the visitor types. We recommend checking this to allow quicker access to search results.

Quick Preview is enabled by default on Search Blocks. To disable this feature, click the Display tab in the block editor and uncheck Quick Preview.

Quick Preview is enabled by default on Search Blocks. To disable this feature, tap Display in the block editor and switch the Quick Preview toggle off.

Style the search box

In the Display tab, select Light or Dark to customize how the search icon and box outline appear on your site. Dark is recommended for sites with light backgrounds. Light is recommended for sites with dark backgrounds.

Use the Search Block 

To use Search Blocks, place your cursor in the search box and begin typing.

If Quick Preview is enabled, results populate in a drop-down. The search looks similar to this:

Pressing Enter after entering text opens a page with search results. Recommended pages appear with their thumbnails, content snippets, and excerpts. If a page doesn’t have a thumbnail image, the first image on the page appears.

FAQ and troubleshooting

Can I add a site-wide Search Block to the top of my site?

It isn't possible to add Search Blocks above your page content, but you can add Search Blocks to individual pages. If your template supports it, the header content area is a good place to add it.

You can also add a "Search" link to your built-in search page to your Main Navigation or anywhere links are supported:

  1. Create a URL by adding /search to the end of your full domain so it looks like this: http://www.yourdomain.com/search
  2. Add the URL to a web address link in your navigation or somewhere else like a text link, button block, or button in a special banner.

I can’t see the text I’m typing in the Search field.

By default, the Search Block is set to the Dark theme. If the page background is dark, the search text will blend in. The same can happen if the page background is white and the Search Block is set to the Light theme.

To fix this, switch the theme to Light or Dark in the block’s Display tab.

My search query isn’t generating results.

Try the following steps to generate search results:

If you're still not seeing results after following these troubleshooting steps, contact us, and we'll refresh your site's search on our end.

Was this article helpful?
33 out of 90 found this helpful