@yoursocialbox
Seeing code at the top of a page is usually a result of improperly formatted opening/closing tags. Here are some things to check in your bp-custom.php:
- Make sure you’ve copied the code exactly as in the post above.
- Check the double-quotes; make sure they are straight quotes ( ” ) not curly ones.
- Be sure your bp-custom.php file content begins and ends with the proper tags: an opening <?php tag at the very top, and a closing ?> tag at the very bottom.
The part of the code where you put your own URL is where you see "/about". Change that to the page slug you want to redirect to (the page slug is what comes after your domain name). For example, if you want to redirect to http://example.com/my-redirect, change it to "/my-redirect".
Hope this helps!