admin管理员组文章数量:1435859
Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to restore it to the previous version.
Our homepage now contains the code "meta name='robots' content='noindex,nofollow' /" (< removed). From Googling, it appears that this code should be added when I visit the Privacy section of Wordpress and select "I would like to block search engines, but allow normal visitors".
However, my site is selected as "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers".
I also understand that by default, Wordpress chooses the first option, blocking search engines. I think that at some point during the restore to a previous version, Wordpress has got stuck in the blocking search engine mode. Changing privacy is having no affect on the code.
I need a manual way to remove "meta name='robots' content='noindex,nofollow' /" from the homepage - I have no idea where the code is located though.
Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to restore it to the previous version.
Our homepage now contains the code "meta name='robots' content='noindex,nofollow' /" (< removed). From Googling, it appears that this code should be added when I visit the Privacy section of Wordpress and select "I would like to block search engines, but allow normal visitors".
However, my site is selected as "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers".
I also understand that by default, Wordpress chooses the first option, blocking search engines. I think that at some point during the restore to a previous version, Wordpress has got stuck in the blocking search engine mode. Changing privacy is having no affect on the code.
I need a manual way to remove "meta name='robots' content='noindex,nofollow' /" from the homepage - I have no idea where the code is located though.
Share Improve this question asked May 28, 2013 at 4:01 user33364user33364 211 silver badge2 bronze badges 1- Try header.php in your theme file. – Andrew Bartel Commented May 28, 2013 at 4:32
1 Answer
Reset to default 4The setting is stored in the options table under the key blog_public
, the value is either 0
or 1
. You can see the value of all options by manually visiting the page /wp-admin/options.php
.
A quick way to get rid of it would be to remove the noindex
action hooked to wp_head
, which is what outputs that tag if blog_public
is 0
:
remove_action( 'wp_head', 'noindex', 1 );
This behavior is a bit strange though, I suspect perhaps something else may be involved here beyond simply the value of this option.
本文标签: searchNoindexnofollow stuck on homepage
版权声明:本文标题:search - Noindex, nofollow stuck on homepage 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745655307a2668675.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论