
Enable Root Profiles : www.yourwebsite.com/username
Please add this code snippet below to the file "bp-custom.php" in the path "wp-content/plugins" :
https://gist.github.com/KaineLabs/440490a3b4decaf3c6da9b97016d7bd2
Ps: if you didn't find the file "bp-custom.php", just create a new one.