Leon
Leon

Reputation: 2149

Wordpress: Change robots meta tag

I was wondering, is there any way to override the robots meta tag that Wordpress is placing with the wp_head() function. For some reason I can't uncheck the box that says "Discourage search engines from indexing this site" (when I uncheck the box, and save the settings, the page reloads and the box is checked again).

I've found the function that places the meta tag in the wp_includes folder, but I don't want to change anything in the core so I was wondering if it's possible to do it in any other way.

Thanks!

Edit: I tried disabling all my plugins, that didn't solve the checkbox issue.

Upvotes: 2

Views: 2590

Answers (2)

Pedro Lobito
Pedro Lobito

Reputation: 98921

Use a wordpress plugin called head-cleaner, it lets you edit the output of the wp_head() function.

Cleaning tags from your WordPress header and footer.


To edit it manually, open wp-includes/general-template.php and search for function wp_head

Upvotes: 3

Maybe some of your plugins are overrirding the normal behaviour.I would disable all ,no necesary, plugins and see what happens when you disable that checkbox.

Upvotes: 0

Related Questions