Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Child Theme

  • @aaronthomas1979

    Participant

    Hello,

    I have a few questions about Buddypress, themes, and child themes.

    Is a Buddypress theme something seperate from a WordPress theme? My understanding, is that a Buddypress theme is simply a WordPress theme, which is optimized for Buddypress. Is this correct?

    My next question:
    I have modified REGISTER.PHP, and I realize that whenever there is a Buddypress upgrade, my changes will be lost. This file is located in this folder:

    public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members

    Sometimes, I like to make changes to strings of text in other php files as well.

    Can I, and how can I use a child theme to protect my changes?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • @venutius

    Moderator

    The answer is yes and yes!

    Yes a BP theme is a WP theme that has been optimised for BP.

    And yes, if you create a child theme and copy the PHP file into wp-content/mychildtheme/buddypress/etc the file will be protected from bp updated.

    @aaronthomas1979

    Participant

    Thanks! Now, to be certain, let me ask you this:

    This is the original path to the original register.php:
    public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php

    This is the new path that I created by adding new folders:

    public_html/wp-content/themes/graphene-child-theme/buddypress/bp-templates/bp-legacy/buddypress/members/register.php

    Please notice that I did NOT create a folder called “plugins,” during this process. Is this correct?

    If not, let me know where I goofed. But if I am correct, and there will be no folder called “plugins,” with regard to the child theme, then let me ask this last question:

    I will MAKE CHANGES TO the child theme’s register.php, and I will stop caring about what happens with the ORIGINAL register.php. Is this correct?

    Thanks for your patience with me. I appreciate very much!

    @danbp

    Participant

    Hi,

    it’s wrong !

    1) You add only copies of the files you want to modify. The original templates are in
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/

    2) the path in a child should respect the original directories, like this
    wp-content/themes/graphene-child-theme/buddypress/members/register.php

    @aaronthomas1979

    Participant

    I did what you said and it’s working now. Thank you very much!

    It’s confusing as to why the new sub-folders differ so much from the originals. (In the child theme, we don’t have bp-templates, for example.)

    Is the child theme only good for Buddypress editing?

    Or can I use it to edit another plugin as well?

    If I can use it to edit other plugins, could you give me an example of how I will create that path?

    @danbp

    Participant

    Is the child theme only good for Buddypress editing? YES

    Or can I use it to edit another plugin as well? NO
    Plugins don’t have (at the moment) a child-plugin.

    @aaronthomas1979

    Participant

    Thank you very much! Everything is completely resolved here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Child Theme’ is closed to new replies.
Skip to toolbar