@kevinbrands
4 years, 11 months ago
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?
@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' );