• Resolved wpbh

    (@wpbh)


    Hi,

    I know it’s redundant, since the <meta name = “robots” content = “noindex, follow” /> tag concerns the standard.

    Even so, I wanted to add googlebot and bingbot to home, pages and posts.

    It’s possible?

    What function should I add in functions.php to add googlebot and bingbot?

    Best regards.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    If you want to also add in specific noindex tags for those search engines you will need to use the filters (such as wpseo_bingbot and wpseo_googlebot) here https://gist.github.com/amboutwe/0c71e42aa164238007d7ea88f174a93f#file-yoast_seo_robots_remove-php to create a custom code solution.

    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 1 week 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.

    Thread Starter wpbh

    (@wpbh)

    Hi,

    I don’t want to add noindex tags to search engines, nor do I want to remove the tags.

    I wanted to add these tags:

    <meta name = “googlebot” content = “index, follow />

    <meta name = “bingbot” content = “index, follow />

    Where can I find the functions to add these tags?

    Hi,

    Ahh ok. Yoast does not output each index tag for the search engines. It outputs only:

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

    That tag is expected to work for all search engines.

    However, if you want to modify it to output index tags for different search engines, you will still need to use those filers described previously to add in a custom code solution.

    Thread Starter wpbh

    (@wpbh)

    Hey,

    Sorry for my insistence and constant annoyance.

    I went where you recommended, but I didn’t find a custom code solution to generate index tags for different search engines.

    I just wanted to add the tags:

    <meta name = “googlebot” content = “index, follow />

    <meta name = “bingbot” content = “index, follow />

    How can I find the custom code to generate the tags I want?

    Please, can you help me?

    Thank you.

    Hi,

    No worries. We can clarify!

    We mean you will need to use the filters to create the code. We have the filters here: https://gist.github.com/amboutwe/0c71e42aa164238007d7ea88f174a93f#file-yoast_seo_robots_remove-php.

    You will need to use wpseo_googlebot and wpseo_bingbot to output the kinds of tags you need.

    However, we do not provide those kinds of code snippets.

    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 1 week 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.

    Thread Starter wpbh

    (@wpbh)

    Hey,

    The filters are as follows:

    <?php
    /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/

    /*
    * Remove robots meta tags from Yoast SEO
    * Credit: Yoast development team
    * Last Tested: May 09 2020 using Yoast SEO 14.0 on WordPress 5.4.1
    */

    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

    Thread Starter wpbh

    (@wpbh)

    Are they correct?

    Hi,

    That is correct but you will need to develop on what we provide to make your own code. Copy/pasting them is not likely to work.

    Thread Starter wpbh

    (@wpbh)

    I have no idea how to do this, Pcosta88.

    Plugin Support devnihil

    (@devnihil)

    @wpbh Unfortunately the support we offer through the forums doesn’t encompass providing support for creating custom code to modify the plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we’re not able to offer support on implementing or writing the code required to make such changes.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Googlebot and bingbot’ is closed to new replies.