TTaylor Posted February 16, 2023 Posted February 16, 2023 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!
creedon Posted February 16, 2023 Posted February 16, 2023 You could take the posts into Draft mode. 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.
TTaylor Posted February 16, 2023 Author Posted February 16, 2023 8 hours ago, creedon said: You could take the posts into Draft mode. 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?
creedon Posted February 16, 2023 Posted February 16, 2023 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. TTaylor 1 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment