Zac McDonald

How to noindex BuddyBoss Member Pages

Use this function to tell search engines not to index your BuddyBoss member profile pages.

If you are using BuddyBoss you may want to disable your member profile pages from displaying in search results. Use this function to add a NOINDEX tag to those pages.

Function to prevent Gutenberg CSS from loading

Use this function to add a NOINDEX and NOFOLLOW tag to BuddyBoss member profile pages on your WordPress website.

				
					// Add noindex to BuddyBoss member profile pages.
function noindex_profile() {
  	if (bbp_is_single_user()){
  	  	echo '<META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW” />' ;
  	}
}
add_action( 'wp_head', 'noindex_profile' );
				
			

Add the function to your site

Add the above function to your child theme functions.php file or as a snippet using a plugin. Your website will add a NOINDEX and NOFOLLOW tag to BuddyBoss member profile pages.

Comments: How to noindex BuddyBoss Member Pages

Leave a Reply

Your email address will not be published. Required fields are marked *

How to noindex BuddyBoss Member Pages

WordPress Developer

Add an experienced WordPress Developer to your team.