• Resolved klivie

    (@klivie)


    So we’re a development agency and we have a large amount of staging & live sites.

    Obviously for all our test sites we have set them to noindex as we don’t want search result values but we also need them to be set to nofollow.

    It seems checking “Discourage search engines from indexing this site” sets the noindex correctly but the site still uses “follow” for robots rather than “nofollow”.

    We need this to be changed on every single page / post across the website (only for our test site) obviously.

    I can’t see any way to change this globally. The only way i see is if you go into each page / post individually and to change the value for “Should search engines follow links on this?” on each.

    But our website has over 200+ pages and another 200+ posts so we cannot really go through and change this option individually for all.

    Is there a global way to change this value?

    Thanks,
    Kurt

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

Viewing 1 replies (of 1 total)
  • Pcosta88

    (@pcosta88)

    Hi,

    Yoast does not have a way to bulk or globally output a nofollow tag. We had a request to add that feature but it was closed here: https://github.com/Yoast/wordpress-seo/issues/7011

    Instead, we have a wpseo_robots filter which can be customized to output a nofollow tag globally. You may need to review the code snippet here https://gist.github.com/amboutwe/0c71e42aa164238007d7ea88f174a93f/#file-yoast_seo_robots_remove_single-php and adjust it accordingly so as to output it across the entire site.

    Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    We highly recommend checking out our list of Yoast Partners here https://yoast.com/yoast-partners/ in case you are in need of development.

    We will also keep this issue open for 2 weeks in case someone from the community can help. Perhaps a developer watching these forums can assist further. After which, we will close in order to keep the overview.

Viewing 1 replies (of 1 total)

The topic ‘noindex, follow values’ is closed to new replies.