-
Tom posted an update: 1 year, 11 months ago
When I upgrade the bp-default themes function.php breaks the site because I have a function.php in my child theme. Any way I can have both co-exist nicely? Otherwise any changes in future upgrades to the bp-default functions.php doesn’t translate to my child theme!
bottom of this page http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/ should help you
I felt stupid and renamed my functions.php in my child to customfunction.php – still get the white screen of death. Any ideas?
Hmmm… I have a custom function in mine that works, so maybe it’s the code? Also, make sure you didn’t copy over all the code in functions.php from the default bp theme. Just start with your custom function and make sure all the opening/closing tags (no misspells) are there, too.
http://pastie.org/840691 – I’ve pasted my custom functions.php file. Let me ask you this. I’m reading the link you sent me to, is it saying keep the filename as ”functions.php” and make sure that there are no duplicate function names, or do not name it functions.php, name it ”customfunctions.php”? Thanks so much for the help!
ah the lightbox. so you’d put that code in a file called functions.php. then, you’d add your functions.php into your child theme folder — it should be the only functions.php file in there. if it’s still not working, maybe that script’s conflicting with all the js in bp but not sure on that.
I completely emptied everything out of the functions.php file and I’m still getting wsod. I have functions.php in the child theme, so I’m guessing something crazy is going on. I’ll keep poking at it. Really appreciate all the help!