Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #444619

    enfold is generating contradictory robots tags. one allowing- this one is on every page:

    just under;

    <!– page title, displayed in your browser bar –>
    <title>site name | page title</title>
    <meta name=”robots” content=”index, follow” />
    <link rel=”icon” href=”http://example.com/wp-content/uploads/favicon.ico&#8221; type=”image/x-icon”>

    then;
    <!– Scripts/CSS and wp_head hook –>
    <meta name=’robots’ content=’noindex,follow’ />

    this secondary meta is generated if the settings are thus:
    Settings>reading>Search Engine Visibility> Discourage search engines from indexing this site checked.

    environment:
    zero plugs less the layers built in one
    fresh install
    repeatable
    latest wp and theme.

    obviously I want to disable bots for now on the pre-production site- and I know that, google for example honors the most restrictive but other bots…
    cannot find anything on the search.

    • This topic was modified 9 years, 5 months ago by sdkl.
    #444628

    forgot to add- using the child theme with default demo data.

    #444637

    Hi!

    Can you please try adding following code to Functions.php file of your child theme in Appearance > Editor

    add_filter('avf_set_follow','avia_set_nofollow');
    function avia_set_nofollow(){
    $meta = '';
    return $meta;
    }

    Cheers!
    Yigit

    #444687

    that did it. Thanks!

    #444842

    Hi!

    Great, glad we could help.

    Cheers!
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.