override robots meta tag

SOS Childrensvillages asked on March 2, 2021 08:09

According to the Kentico Documentation, Kentico automatically adds the following tag when I exclude the page from search:

But I need it to be "noindex,follow"

I've tried removing it in my canonical webpart under the OnPreRender method but Kentico is somehow adding the robots tag after that event.

I can't override it using googlebots as google will still take the more restrictive tag.

I don't mind editing the kentico code but a search of "noindex,nofollow" or "robots" in the solution doesn't find anything.

Does anyone know how I can remove or edit this tag?

I'm using K12SP Portal Engine for the record.

Recent Answers


Brian McKeiver answered on March 2, 2021 19:48

Unfortunately I do not think you can change the "noindex,nofollow" string as it comes from the page level field of Exclude from Search, as it is default behavior. It looks to be in the compiled portion of the CMS. You could choose not to use that checkbox and build your own field and webpart to render the meta tag however.

Now Robots.txt should be fully controllable by you in Kentico if you have it setup as the documentation states. https://docs.xperience.io/k12sp/configuring-kentico/search-engine-optimization/managing-robots-txt

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.