Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 site

    our 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

    #577175

    Hey!

    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!
    Yigit

    #577181

    Thank 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
    Mauro

    #578286

    Hi!

    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,
    Ismael

    #578442

    it’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’ />

    #578620

    Sorry 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

    #578621

    Hey!

    Please remove the code and uncheck “Search Engine Visibility” when you would like to launch your website

    Cheers!
    Yigit

    #578625

    Ok thank you

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘index, noindex’ is closed to new replies.