How to Hide Pages from Your Squarespace Search Results (with Monocle)

While Squarespace's native search functionality is limited, sometimes you need to prevent specific pages from appearing to your visitors. Whether you're using hidden landing pages or managing a private content library, controlling what shows up in search is crucial for a clean user experience. Monocle Search provides a powerful solution for this, going beyond the limitations of Squarespace.

Why You Might Need to Hide Pages

There are several strategic reasons to exclude pages from your site's internal search results:

  • Private Content Libraries: A key use case, especially when you're managing a reusable content library. For example, when you use a plugin like Synced Blocks, each block of reusable content exists on its own separate blog post. When a user searches your site, the Monocle search results will be scattered with these individual "source" posts, which are not meant to be found by visitors. Hiding them ensures search results are clean and relevant.

  • Landing Pages: Pages designed for external ad campaigns or specific calls-to-action shouldn't be easily discoverable by visitors already on your site.

  • SEO-Specific Pages: Content created purely for search engine rankings—such as a page full of target keywords—may not be relevant or useful for a human visitor searching your site.

  • Collection Overview Pages: You might want visitors to find the specific content items (e.g., individual products or blog posts) rather than the main category page that contains them.

Unfortunately, these use cases aren't possible with Squarespace's built-in search. This is where Monocle comes in.

Setting Up the "Exclude Pages" Feature

  1. From the Monocle Search dashboard, head over to the Exclude pages section.

  2. In the text field, enter the paths you want to exclude. You can:

    • Exclude a specific page: Add the path, e.g., /my-landing-page.

    • Exclude an entire folder or collection: Add the path followed by an asterisk, e.g., /projects/*.

    • Include exceptions: You can also make exceptions to a rule. For example, if you've excluded /blog/* but want to show a specific post, you would add /blog/my-important-post to the "Include" field.

  3. Click Save changes.

You'll need to wait for a little while for the changes to take effect, which can sometimes take up to an hour.

Below is a table that explains the different types of rules you can use to manage which pages appear in your on-site search results.

RulePath ExampleActionUse Case
Specific Page/my-landing-pageExcludes a single, exact page from search results.Hiding a unique page that you don't want visitors to find via the on-site search.
Entire Collection/projects/*Excludes all pages within a specific URL path, indicated by the wildcard *.Hiding an entire folder of content, such as a "reusables" blog collection for Synced Blocks, to prevent scattered search results.
Exception/blog/my-important-postIncludes a specific page that would otherwise be excluded by a broader rule.You've excluded your entire blog, but want a single, important post to be searchable.

A Practical Example: Hiding Your Synced Blocks Content

Let's imagine you have a blog collection titled "Reusable Blog" at the URL /reusables where you've stored all the content used by your Synced Blocks plugin. You want to use this content across your site without it cluttering your internal search results.

Here’s how you would use Monocle to hide this entire collection:

  1. Navigate to the Exclude pages section within the Monocle interface.

  2. In the text field, add the path to your reusable blog collection: /reusables/*.

    • The asterisk * acts as a wildcard, telling Monocle to exclude all pages that fall under the /reusables path.

This simple step ensures that any blog post within that collection is removed from your on-site search results, maintaining a clean and focused experience for your visitors.

A Note on sitemap.xml and Manual Control

Monocle's system works by adjusting how it indexes your site's pages, not by changing your site's actual sitemap.xml file. The sitemap is what search engines like Google use to discover and index your pages.

For advanced users who may need to modify their sitemap for SEO purposes, Squarespace does not provide direct access. However, it's possible to use server-side redirects or other custom code solutions to present a different XML file to search engine bots. This is a highly technical process and is generally not recommended for the average user, as an error could negatively impact your site's SEO.

Here is a table comparing the visibility of content in SERPs (Search Engine Results Pages) and Monocle Search, considering different Squarespace settings

SettingVisibility in Google/SERPs (sitemap.xml)Visibility in Monocle SearchNotes
Public PageVisible. Included in Squarespace's automatically generated sitemap.xml file, which is crawled by search engines.Visible. Monocle indexes all public pages on your site by default.This is the standard setting for all publicly accessible content you want to rank for.
Password-Protected PageHidden. Automatically removed from your sitemap.xml file. Search engines cannot access the content, and it will eventually be de-indexed.Hidden. Monocle cannot access the content on a password-protected page, so it will not appear in the search results.A great method for securing content from both the public web and your site's internal search.
Membership ContentHidden. Pages within a Squarespace Member Area are automatically excluded from your site's sitemap.xml.Visible. Monocle can be configured to crawl and index content within Member Areas, making it searchable for logged-in members.This is a key advantage of Monocle, as it allows members to search for exclusive content on your site.
Monocle "Exclude Pages"Visible. This setting only affects Monocle. The pages are still in your sitemap.xml and can be found by search engines.Hidden. This is the primary function of the "Exclude pages" feature, as it tells Monocle to specifically ignore certain URLs.Ideal for hiding content that is only useful for search engines (SEO pages) or for preventing redundant results (e.g., source content for Synced Blocks) from appearing in your site's search.

Final thoughts

Congratulations! By using Monocle's "Exclude pages" feature, you've made your on-site search results far more useful and provided a better experience for your visitors.

Beyondspace

As a Squarespace Circle member, Beyondspace delivers plugins that elevate your website, streamline workflows, and optimize the Editor experience—saving time and driving engagement.

https://beyondspace.studio
Next
Next

Sudden Rankings Drop in Semrush? Here’s Your Sanity-Saving Playbook