Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to edit Buddypress functions


  • popeye987
    Participant

    @popeye987

    Hi BuddyPress community,
    I’ve been struggling with this problem for a few days now, and since i can’t find an answer i come for your help.
    I want to edit some files (some functions within them) from the “public_html\wp-content\plugins\buddypress\bp-templates\bp-nouveau\includes” Directory, like “functions.php”, and “template-tags.php”. The issue i have, is that i don’t know how to edit them on my child theme (i don’t want the changes go away every time i update BuddyPress).

    So the question is.. How can i edit those files in my child theme?.

    Thank you very much guys. Please explain me like you were teaching a kid so i can understand (im not very experienced at this, so please bear with me).

Viewing 3 replies - 1 through 3 (of 3 total)

  • D L
    Participant

    @damon18

    I need this too, now that I’ve changed to 5.0 and the Nouveau themplates.

    I used to be able to over-ride the 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.”
    by editing a copy of register.php in the child theme.

    That doesn’t work now, the above text is found in
    /buddypress/bp-template/bp-nouveau/includes/functions.php

    Is it safe to put a copy of funtions.php in
    /child-theme/buddypress/includes/functions.php and make the edit there?

    Or is there a better way?

    There are several ways to edit messages. Since these messages are filtered (it’s applied here: https://github.com/buddypress/BuddyPress/blob/5.0.0/src/bp-templates/bp-nouveau/includes/functions.php#L932), you could add something like this in your bp-custom.php file:

    
    add_filter( 'bp_nouveau_feedback_messages', function ( $messages ) {
    	$messages['request-details']['message'] = 'My custom message';
    	return $messages;
    } );
    

    If you find yourself changing a lot of messages, then creating a custom language file is the way to go. https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/


    D L
    Participant

    @damon18

    Thanks @dcavins it looks like the language file is the way to go for the text. Although to create the registration page I had on Legacy with BP 4.4 I’d need something more to include formatting and logo image file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar