Jump to content

How to Not Index a Blog Page (Remove from Sitemap?)

Recommended Posts

Posted

Hi,

I have old (maybe irrelevant posts) that I want to keep, but not have it show (indexed) in Google Search.  I see how to HIDE pages but what if I want to hide a blog post (not all pages in the blog).  Is there a way to do this with code?

 

Thank you!

Posted
8 hours ago, creedon said:

You could take the posts into Draft mode.

ScreenShot2023-02-15at7_37_21PM.png.a6fc4b8edd99f7ce2fec8e65971bd1e2.png

HI,

Thank you for replying.

I thought of that, but if the page is getting traffic from Pinterest or social, I want to keep it around.  Are there any other options?  Code injection perhaps?

 

Posted
Quote

but if the page is getting traffic from Pinterest or social, I want to keep it around.  Are there any other options?  Code injection perhaps?

Code injection would be the only option. It would require JavaScript and the business plan or above.

A possible solution ignoring Squarespace for a moment, is to put a noindex instruction ( <meta name="robots" content="noindex"> ) in the head element of the page. Squarespace allows code to be added to the head element at the Blog page level but not in specific blog posts. If you put the meta tag in code injection for the Blog page, all pages of the blog would pick that tag up and no pages of your blog would be indexed. So we are left with JavaScript to decide when to insert the meta tag. Also there is the caveat. By using JavaScript the search engine crawlers may or may not pick up the tag inserted by JavaScript. We have no control over what the search engines do.

I'm am unaware of any code that does the above.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.