Customise Monocle Search

Hide pages from search results

Sometimes you want pages to stay on your site without showing up in search results. Common examples:

  • landing pages built for campaigns or SEO
  • overview pages that are less useful than the content they link to
  • pages that should stay visible to search engines, but not to people already browsing your site

Squarespace search does not provide this control. Monocle search lenses do.

Set up exclusions

Use the Default lens to control what appears in search across the site.

  1. Open Search Lenses in the Monocle interface.
  2. Open the Default lens.
Screenshot of the search lenses overview page showing the default lens
Open the Default lens from the Search Lenses overview.

Use the main field in the lens editor to specify which paths Monocle must exclude.

The lens editor showing rules for including and excluding content
Use this field to exclude paths from search or add exceptions.

You can:

  • exclude a single page with /specific-page
  • exclude a whole section with a wildcard, for example /blog*
  • add an exception with !, for example !/blog/interesting-post to bring one page back after excluding /blog*

Select Save. Changes apply immediately.

If you want different parts of your site to have different search behaviour, read the Introduction to search lenses guide.

Previous
Create a custom launch icon