Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1425714

    I’ve finally launched https://palmcovevision.au
    During the build I configured robots.txt to noindex nofollow
    I can’t recall how I did it or how I change it to index and follow.
    I thought that initially I did it through Enfold Child but since then the Google Site Map plugin has become involved by the look and now I also have Yoast Premium.
    The Yoast scanner didn’t find any problems but I can see this in the source code:

    		<!-- End Google Analytics opt-out snippet added by Site Kit -->
    			<meta name='robots' content='noindex, nofollow' />

    Is this something that I can fix within Enfold?

    #1425726

    Hey John,

    Thank you for the inquiry.

    The meta tag is added or configured by the Site Kit plugin, which is a plugin from Google. You may need to adjust and reconfigure the settings in the plugin panel, or disable it completely. We also disabled the Discourage search engines from indexing this site option in the Settings > Reading panel.

    Best regards,
    Ismael

    #1425791

    No luck so far.

    1. I’ve deleted Site Kit
    2. I’ve deactivated all of the plugins
    3. I’ve deleted the cache
    4. I’ve communicated with Yoast

    It seems that these two lines of code are orphans and somehow, subject to your expertise, we just need to get in there and remove those lines.

    #1425792

    Standby Guys. I have a staging site which is a bit out of date but had the same problem.
    I played around with stuff there. Not sure what yet unfortunately however something that I did rewrote that line to:

    <!-- Scripts/CSS and wp_head hook -->
    <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />

    Just gotta get it to do that on the actual site. Clearly it isn’t an orphan.

    I’ll update later.

    #1425793

    The staging site has reverted to the previous code without me doing anything other than revisiting it.

    <!-- End Google Analytics opt-out snippet added by Site Kit -->
    			<meta name='robots' content='noindex, nofollow' />

    I’m glad I sent you that change when it happened otherwise I would have doubted my sanity.

    #1425833

    Hi,

    Thank you for the update.

    The meta tag is now set to “index, follow”. This is automatically set by the Yoast plugin.

    <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
    

    If you want to disable it for some reason, you can add this code in the functions.php file.

    add_filter( 'wpseo_robots', '__return_false' );
    add_filter( 'wpseo_googlebot', '__return_false' ); // Yoast SEO 14.x or newer
    add_filter( 'wpseo_bingbot', '__return_false' ); // Yoast SEO 14.x or newer
    

    Or configure the settings in the Yoast SEO > Settings > Content Types panel.

    Best regards,
    Ismael

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