Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modified register.php in default – now realize – Oops

  • Profile photo of LPH2005
    LPH2005
    Participant

    @lph2005

    Hey everyone,

    I think my mistake is recoverable but want to double check if this is the proper way to handle things. I modified the register.php page in the bp-default theme. Now I realize that when BP is upgraded then this will be overwritten.

    Is the proper way to handle this to create a child theme? OR – Can I copy all of the bp-default files to a new directory and set this as the active theme (using a different name)?

    Is there is a better way to modify the themes so the work is not overwritten during an upgrade?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Child theme is the recommended way, yes.

    Profile photo of LPH2005
    LPH2005
    Participant

    @lph2005

    Oh – I’m making this far too complicated. First, simply create a directory in /wp-content/themes/ and create a style sheet with the proper tags, etc. Next I copy the register.php file I modified into that directory.

    This should do the trick, right?

    My confusion is that register.php is buried down a few levels and wasn’t sure if the child theme needed to have that same hierarchy.

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Yep, easy and that. And yes you need to keep the hierarchy or the sky might fall

    Profile photo of LPH2005
    LPH2005
    Participant

    @lph2005

    Yep – reading helps on my part. Sorry.

    “You can do this with any template file in the parent theme. However, if you want to override a template file that is in a sub folder, you must also recreate the sub folder in your child theme.”

    https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    But now I’m on my way to getting this fixed ;)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modified register.php in default – now realize – Oops’ is closed to new replies.
Skip to toolbar