• Resolved ayush2308

    (@ayush2308)


    https://goodstuff.co/india

    I’m facing a very weird issue with the Plugin and it seems like the Yoast SEO plugin is adding a no-index tag to the site, stopping google from indexing it. Also no robots.

    Now even with all those settings set, enabling Yoast adds a ‘noindex’ to the header of my site. Disabling Yoast solves this issue.

    Please look into this quickly and let me know if there’s anything wrong with the setup or?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • In SEO > Search Appearance > Content Types / Taxonomies / Archives, anything that should be indexed should have the “Show [item] in search results?” set to Yes.

    Can you confirm this?

    Also, this is not visible on your site right now, so can you capture the respective HTML source with the issue in effect?

    Plugin Support devnihil

    (@devnihil)

    @ayush2308 There are a number of ways you can set pages to noindex, so we would recommend checking all of them. We would recommend checking to make sure the robots meta tag is NOT set to ‘noindex’ for the page/post in Yoast SEO, and you can check this setting by performing the following actions:

      Go to the Edit screen for a page/post
      Scroll down to the Yoast Metabox
      Click on the ‘Advanced’ area
      For ‘Allow search engines to show this Page in search results?’ make sure this is set to ‘Yes’
      Note (setting this value to Yes will set meta robots to ‘index’ and setting No would set meta robots to ‘noindex)

    In addition, you can set pages/posts to be indexed by performing the following actions:

      In WordPress go to SEO>Search Appearance>Content Types
      For Pages set ‘Show Pages in search results’ to ‘Yes’
      Click ‘Save Changes’

    ​As for the global indexing of the site in robots.txt, you can check this in the following way:

      In WordPress go to Settings>Reading
      Make sure for ‘Search Engine Visibility’ that ‘Discourage search engines from indexing this site’ is NOT checked
      Click ‘Save Changes’

    We also have a guide on configuring the robots meta tag located at the following link: https://yoast.com/wordpress/plugins/seo/yoast-seo-robots-meta-configuration/ as well as a guide on how to set a page/post’s meta robots tag to index/noindex here: https://kb.yoast.com/kb/how-do-i-noindex-urls/

    Thread Starter ayush2308

    (@ayush2308)

    Hi @galbaras have checkedd the settings mentioned by you but the issue still persists.

    Thread Starter ayush2308

    (@ayush2308)

    @devnihil Have followed steps sent over by you, but still facing the problem. It doesn’t remove the noindex tag.

    <meta name=”robots” content=”noindex,follow”/>

    • This reply was modified 4 years, 2 months ago by ayush2308.

    Based on HTML source, it seems that the conditional tag is_search is true for this page:
    <body data-rsssl=1 class="home archive search search-results ...

    It’ll be good to you install QM plugin and make screenshot of conditional tags ( https://kinsta.com/blog/query-monitor/ ).

    Actually, in the source of the page, the body tag has the classes “search” and “search-results”.

    Is it possible this is caused by the page template? For some reason, the page is seen as a search page. If you change this, things should be different.

    @ayush2308

    If you are still experiencing an issue with the noindex tag being added, it seems like a plugin or theme conflict. Please Check for conflicts and let us know if the theme or the theme’s templates may be causing the issue.

    @pcosta88 From what I see on the OP’s site, the body classes are different and so is the robots tag. I think you can close.

    Thread Starter ayush2308

    (@ayush2308)

    @galbaras It’s not bec of the template i think. Checking the body classes now once for the issue.

    Thread Starter ayush2308

    (@ayush2308)

    @pcosta88 Thanks I’ll try this out right away

    @ayush2308 your robots tag now reads:

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

    @ayush2308 There is weird combination of “CSS classes” (which is just consequence). Please make screenshot of all conditionals (QM menu -> is_search() when you open this URL as administrator) if you wan to we help.

    By default, Yoast SEO sets noindex for “search results”. I suppose that’s reason why page is no-indexed (and you can’t change it into dashboard). It’s possible that there is custom rewrite rule (make screenshot of QM -> request to we can debug “page type” ). Other possibility is that some plugin/custom code overwrites main WP query.

    Now, it’s recognized as “blog page” and is_search is false. Page layout is changed (before it was looked as “shop catalog”). It’s reason why Yoast SEO doesn’t add noindex.

    Thread Starter ayush2308

    (@ayush2308)

    @stodorovic we had to change that, You can try at goodstuff.co instead

    Thread Starter ayush2308

    (@ayush2308)

    @galbaras can you also try once at goodstuff.co

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Yoast adds noindex’ is closed to new replies.