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

Hiding pages from search engine results

Adding a "noindex" tag to a page hides it from search engines, while leaving it public and available for visitors to access.

There are two options for adding a noindex tag:

  • Page settings - Check Hide this page from search results in the SEO tab of page settings.
  • Code injection - Add the code manually with code injection.
Tip: To see all options for hiding content on your site, visit Controlling who can see your site's pages.

Watch a video

Page settings vs. code injection

Adding a noindex tag in page settings or through code injection creates a similar effect. Usually, you can use the page settings option.

With either method:

  • Adding the tag to a collection page also hides its collection items. This includes the individual products on a products page.
  • You can't hide individual collection items or portfolio sub-pages.
  • Adding the tag to an index page doesn't hide its sub-pages. To hide all pages, add the tag to the main Index and each sub-page.
  • Adding the tag doesn't hide pages from site search, only external search engines.

The differences are listed in the table below.

Page settings

Code Injection

  • Available on all plans
  • Built-in option, no code knowledge required
  • Page-specific (no site-wide option)
  • Removes the page from the site map
  • Not available for homepages
  • Enabled on demo pages
  • Not available on the Personal plan
  • Requires adding code manually
  • Can be used to hide the entire site
  • Page or site stays in the site map
  • Available for homepages
Tip: You can hide the entire site with your site's availability settings.

Enable the tag in page settings

To enable the noindex tag for a page:

  1. In the Home menu, click Pages.
  2. Hover over the page and click the gear-icon.
  3. Click the SEO tab.
  4. Switch the Hide from search engines toggle on. Blog pages have more options.
Tip: Homepages and individual collection items don't have a Hide from search engines toggle.

Add the tag with code injection

Code injection is a Premium feature available in Business and Commerce plans.

You can add a noindex tag manually to code injection with the following code snippet:

<meta name="robots" content="noindex">

The code injection area you use sets what content is hidden:

  • Hide your entire site - Add the code snippet to Header code injection.
  • Hide specific pages - Add the code snippet to the Page header code injection in page settings. Adding this to a collection page (like a blog page) also hides its collection items (like blog posts).
Tip: If you downgrade to a plan that doesn't support Premium features, code injection is automatically disabled.

Note: Custom code modifications fall outside the scope of our support. This means that we’re unable to help further with setup or troubleshooting. Additionally, with a code-based solution, we can’t guarantee its functionality or full compatibility with Squarespace. This includes how it functions with our responsive design, particularly its appearance on mobile devices, and if it functions on all templates. Custom code can also cause display issues with future updates to our platform. While we can't help further, there are many resources that can point you in the right direction:

Was this article helpful?
22 out of 66 found this helpful
Hiding pages from search engine results