Buddypress pages adding text on top

Hello X team!

I have an issue I am not able to solve with Buddypress on one of my sites. I would like to display a piece of text, normal paragraph style, at the top of the Buddypress pages “Create an account” and “activity”. I have a different piece of text for both pages. Not that I not already am, but I would be eternally grateful if you could help me out here, I have been looking all over the internet for some help here but nothing seems to work for me. My issue is also that there should be a piece of text already visible on top of the “Create an account” page, by default, this text:

Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.


but for some reason it does not show on my website, it seems to be put as comment and not as real text. Thank you in advance and kind regards.

Hi Mitica,

Unfortunately, the request is outside of our support scope. We recommend the BuddyPress plugin as one of the compatible plugins with the theme but the request is not a compatibility issue and a customization one.

You can consider using our One service to ask any questions.

Thank you for your understanding.

Hello Christopher,

I understand. Could you please tell me though why this sentence is not appearing as it should and where I can get to it? According to Buddypress this could be a theme related thing, because the standard is that the following sentence should show on top of the registration page, and it never appeared there for me, that could be a compatibility issue no?

The sentence is:
“Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.”

It shows up in the code, but only as a comment for some reason and I do not see how to change this.

I appreciate it a lot,
Kind regards

Hello Christopher, never mind I figured it out :slight_smile: For anyone else looking, I created a php file called bp-custom.php and followed instructions on how to do that on buddypress.com, then copied the following code there:

 function my_custom_register_msg_title() {
echo '<h2>Welcome on my site !</h2>';
 }
 add_action( 'bp_before_register_page', 'my_custom_register_msg_title' );
 
 function my_custom_register_message() {
 echo '<p>Thank you for registering.</p>';
 }
 add_action( 'bp_before_account_details_fields', 'my_custom_register_message' )

Thanks to Danbp of buddypress and thank you for pushing me to solve it myself :wink:

Glad this is now sorted out Mitica and thank you also for sharing the solution!

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.