This topic has 3 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #130485
     hotloverspassion
    Participant

    Hi guys,

    I’ve got a silly question I want to ask. Sometimes I have to put some codes into functions.php of child theme or bp-custom.php. What is the difference between those two? Is one better to use than the other? When I had to choose where to put one of the codes, I have chosen functions.php as it is in my child theme so I won’t loose the changes when updating the theme. I was not sure about bp-custom.php when it would come to an update…but that’s just my logical thinking…am I missing something else?

    Thanks 🙂

    #130517
     Radu
    Moderator

    Hi,

    The bp-custom.php belongs to buddypress plugin, and if you update or delete the plugin the file can be deleted or not, it’s recommended to paste the snippets into functions.php file from child.

    The function.php belongs to the child theme and exactly you will have all things saved there and it’s update proof.

    If you have snippets in both files backup it periodically or move snippet form bp-custom to functions.php it should work, if not keep in both files.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #130520
     hotloverspassion
    Participant

    Amazing! Thanks a lot Radu 🙂

    #130529
     Radu
    Moderator

    No problem

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?