Skip to content

Instantly share code, notes, and snippets.

@raftaar1191
Last active August 7, 2023 12:42
Show Gist options
  • Save raftaar1191/f94fb5b55da202afe341508bdea12327 to your computer and use it in GitHub Desktop.
Save raftaar1191/f94fb5b55da202afe341508bdea12327 to your computer and use it in GitHub Desktop.
Add text on the user profile page after the nickname is displayed
/**
* Print custom text on the profile page after the nickname
*/
function awp_bp_before_member_header_meta_callback() {
echo "Custom Text";
}
add_action( 'bp_before_member_header_meta', 'awp_bp_before_member_header_meta_callback' );
@raftaar1191
Copy link
Author

Alter method:

  1. Move this file inside the child-theme of your site: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php.
  • This template can be overridden by copying it to your-child-theme/buddypress/members/single/cover-image-header.php.
  1. Then go to line number 134 and add the text that you want to display after the user nickname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment