-
AuthorPosts
-
February 3, 2016 at 4:51 pm #577171
Dear Kriesi support,
the first lines of code in our home page http://naturalnicheperfume.com/
have these two conflicting lines
<meta name=”robots” content=”index, follow” />
<meta name=’robots’ content=’noindex,follow’ />
Our website is not yet live so in WordPress Reading Settings we have checked
Search Engine Visibility Discourage search engines from indexing this siteour robot.txt contains these lines:
######################
User-agent: *
Disallow: /
Disallow: /cart/
Disallow: /wp-admin/
Disallow: /wp-includes/Sitemap: http://naturalnicheperfume.com/sitemap.xml
######################Has anything to do with theme settings?
Thank you Mauro
February 3, 2016 at 4:57 pm #577175Hey!
Please add following code to functions.php file in Appearance > Editor
add_filter('avf_set_follow','avia_set_nofollow'); function avia_set_nofollow(){ $meta = '<meta name="robots" content="noindex, follow" />' . "\n"; return $meta; }
Cheers!
YigitFebruary 3, 2016 at 5:14 pm #577181Thank you, now there is no conflict but the directive is still repeated twice
<meta name=”robots” content=”noindex, follow” /><meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″><meta name=’robots’ content=’noindex,follow’ />
When we will go live should I keep this filter and change it to this?
add_filter(‘avf_set_follow’,’avia_set_nofollow’);
function avia_set_nofollow(){
$meta = ‘<meta name=”robots” content=”index, follow” />’ . “\n”;
return $meta;
}or removing the checkbox to Search Engine Visibility “Discourage search engines from indexing this site” will be sufficient?
Thank you
MauroFebruary 5, 2016 at 6:33 am #578286Hi!
Please try to adjust the code:
add_filter('avf_set_follow','avia_set_nofollow'); function avia_set_nofollow(){ return ""; }
This will disable the theme’s meta tag.
Best regards,
IsmaelFebruary 5, 2016 at 11:55 am #578442it’s the same. Here is how it looks without minification
<meta name=”robots” content=”noindex, follow” />
<!– mobile setting –>
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<!– Scripts/CSS and wp_head hook –>
<meta name=’robots’ content=’noindex,follow’ />February 5, 2016 at 5:31 pm #578620Sorry maybe was still in cache, now is ok. Only one instance of
<meta name=’robots’ content=’noindex,follow’ />When we will go live should I keep this filter?
add_filter(‘avf_set_follow’,’avia_set_nofollow’);
function avia_set_nofollow(){
return “”;
}or removing the checkbox to Search Engine Visibility “Discourage search engines from indexing this site” will be sufficient to allow search engines to crawl the site?
Thank you Mauro
February 5, 2016 at 5:32 pm #578621Hey!
Please remove the code and uncheck “Search Engine Visibility” when you would like to launch your website
Cheers!
YigitFebruary 5, 2016 at 5:37 pm #578625Ok thank you
-
AuthorPosts
- The topic ‘index, noindex’ is closed to new replies.