Tagged: seo
-
AuthorPosts
-
November 16, 2023 at 2:41 am #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?
November 16, 2023 at 5:11 am #1425726Hey 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,
IsmaelNovember 17, 2023 at 2:49 am #1425791No luck so far.
- I’ve deleted Site Kit
- I’ve deactivated all of the plugins
- I’ve deleted the cache
- 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.
November 17, 2023 at 3:18 am #1425792Standby 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.
November 17, 2023 at 3:31 am #1425793The 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.
November 17, 2023 at 1:49 pm #1425833Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.