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

Adding search to your site

You can add search fields to your site to help visitors find content. This guide covers methods for adding search, which content can appear in search results, and how to troubleshoot common issues.

Visitors can search your content with these features:

  • Search block
  • Built-in search page URL
  • Built-in header search fields available in select templates
Tip: For help with SEO and your site's appearance in external search engines, like Google and Bing, visit Increasing your site's visibility to search engines.

Making search successful

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

Searching specific terms yields the best results. For example, if there are two totally separate words on one page, the page may not appear in results when searching for both words unless they're close together.

Indexed content

The areas below are indexed for site search using the search block, search URL, or built-in search feature. Any areas excluded from this list aren't indexed. Search results are sorted by relevance.

Tips

  • Pages with noindex tags and pages in your Not linked section are indexed for site search. To prevent this, use a page password.
  • Unpublished content, like blog post drafts, may appear in search results when you're logged in. It won't appear to visitors.
  • Pages in member areas aren't indexed for site search.

Blog pages

  • The blog's page title and page description as set in page settings
  • Each post's title, author, excerpt, and location
  • Text blocks
  • Markdown blocks
  • Code blocks, except text surrounded by JavaScript and CSS tags
  • Inline image block captions, but not titles and subtitles of other image layouts
  • Quote block text
  • Audio block title
  • Map block address
  • Amazon item block title
  • Tags and categories

Layout pages

  • Page title and page description as set in page settings
  • Text blocks
  • Markdown blocks
  • Code blocks, except text surrounded by JavaScript and CSS tags
  • Image block captions for the Inline layout, but not image titles or subtitles
  • Quote block text
  • Audio block title
  • Map block address
  • Amazon item block title
Note: Text for images uploaded directly to gallery blocks won't be indexed. To have a gallery block with text information that appears in site search results, create a gallery page first, then choose Use Existing Gallery when adding the gallery block to a layout page.

Gallery pages (version 7.0 only)

  • Page title and page description as set in page settings
  • Each image's title, author, and description
  • Each image's tags and categories
  • Each image's file name

Events pages

  • Page title and page description as set in page settings
  • Each event's title, author, text in the Excerpt, and location
  • Text blocks
  • Markdown blocks
  • Code blocks, except text surrounded by JavaScript and CSS tags
  • Image block descriptions
  • Quote block text
  • Audio block title
  • Map block address
  • Amazon item block title
  • Tags and Categories

Order of events in search

Since results are sorted by relevance, events might not appear chronologically.

Past events in search

Past events might display in search results. To exclude them, you can hide past events, but this will also hide them from your events page.

Store pages

  • Page title and page description as set in the page settings
  • Each product's title and text in the product item's settings
  • Tags and categories

Album pages (version 7.0 only)

  • Track title

Use the built-in search page

Every Squarespace site has a built-in search feature accessible by adding a /search slug to your domain, such as:

  • yourdomain.squarespace.com/search
  • yourdomain.com/search

Replacing yourdomain with your site title.

This page is a great internal tool to quickly find site content. You can also use this URL to create a public search page by linking to it from your navigation, a text link, or button.

Add a search block

Add a customizable search field to any content area of your site, like layout pages, sidebars, and footers, with a search block. You can set the search block to search your entire site or limit its search to a specific collection, like a blog page. You can also set results to auto-populate as a visitor types.

The search block is more flexible than the search page. While the search page automatically searches all site content, the search block can search your entire site or only a particular collection. The search block can also be added to any part of your site that supports blocks.

Header search bars

Some version 7.0 templates support a built-in search bar in the header. This is a great way to integrate site-search into your design and make it accessible to visitors. Click the link to learn how to display and style the search bar in these template families:

  • Brine
  • Farro
  • Skye

If your site is on version 7.1 or a version 7.0 template that doesn't support a built-in search bar, it isn't possible to add a search field above your page content. However, you can add a search block to individual pages or create a link in your navigation to the built-in search URL.

Track visitor searches in analytics

For a report on terms visitors are entering in these search fields, visit the Site search queries panel in analytics.

Troubleshooting search results

Try the following steps to generate search results:

  • Clear your browser's cache, as it could be loading an earlier version of your site. You can also disable browser extensions or try a different browser or incognito mode.
  • Remove your site-wide password, if you have one in place, and remove any page passwords from pages with search blocks.
  • Ensure that your search terms are added somewhere in your searchable site content. See the indexed areas in the indexed content list above.

If you're still not seeing results after following these troubleshooting steps, contact us. We're always here to help.

Was this article helpful?

39 out of 122 found this helpful