Skip to:
Content
Pages
Categories
Search
Top
Bottom

Conflict with Yoast SEO


  • kevinbrands
    Participant

    @kevinbrands

    Hello,

    We’re trying to set a meta tag (noindex) for several BuddyPress pages (like Members) via Yoast SEO. But these settinsg don’t seem to be picked up.

    It looks like BuddyPress adds the following tag:

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

    Is there a conflict between BuddyPress and Yoast SEO? How could we solve this?

Viewing 1 replies (of 1 total)

  • webmasterfreya
    Participant

    @webmasterfreya

    Hi,

    I have this in the theme functions.php :

    function noindex_buddypress() {
        if ( is_buddyPress() ) {
            echo '<meta name="robots" content="noindex, nofollow">';
        } else {
        }
    }
    add_action( 'wp_head', 'noindex_buddypress' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar