question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checkbox to toggle "noindex" for pages

See original GitHub issue

It would be good to have a “set noindex meta” flag, to be able to disable indexing of single pages easily. Similar to the “show in menu” toggle, and simply inserts <meta name="robots" content="noindex" /> It would fits the “promote” tab, somehow, as an “anti promotion”. I am aware that this is not a “security” feature; but sometimes some minor page just shouldn’t be indexed even though public.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kno10commented, Mar 7, 2017

The same applies to e.g. the existing search_description and seo_title fields. They also rely on compatible templates to work.

Shouldn’t the default template use search_description? I would have expected something like <meta name="description" content="{{ self.search_description|striptags|escape }}" />

Most likely, also the “show in menus” is similar, isn’t it?

P.S. for anybody considering noindex - I simply use {% if “noindex” in self.search_description %}in the template (i.e. typenoindex` in the description); as you won’t need a description and noindex at the same time.

0reactions
gasmancommented, May 13, 2021

@mikemonteith That sounds like a good plan, yep! I think that if we were to add a feature like that at this point, though, we’d need to make sure there’s a clean way to disable it, so that it doesn’t get in the way of people who’ve already implemented the equivalent functionality on their sites.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Block Search Indexing on Specific Pages in ... - YouTube
This video is going to show you How to Block Search Indexing on Specific Pages in Your Shopify Store (No Apps, EASY |...
Read more >
Google Shares How Noindex Meta Tag Can Cause Issues
Google's John Mueller answered a question about the use of the noindex meta tag on product pages that are temporarily out of stock....
Read more >
Setting Noindex and Nofollow on Paginated Content - AIOSEO
Click the Use Default Settings toggle to turn it off which will display the global robots meta checkboxes. You should see a checkbox...
Read more >
How to Fix Submitted URL Marked 'NoIndex' Error? - Rank Math
In this knowledgebase article, we'll discuss how to fix the Submitted URL marked 'noindex' error that appears in the Google Search Console.
Read more >
How to Unblock Robots.txt & Remove 'noindex' on WordPress
Log in to WordPress · Go to Settings → Reading · Scroll down the page to where it says “Search Engine Visibility” ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found