BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Customizing Using a Childtheme Problem
- This topic has 2 replies, 2 contibutors, and was last updated 9 years, 12 months ago by Alyssa.
Question
November 25, 2014 at 9:17 pm #33677@wombleHi guys,
I am new to buddypress and I am trying to customize the BuddyBoss theme and have run into a problem.
I am customizing the member profile area and have changed the code in the child theme:
themes/buddyboss-child/buddypress/members/single/member-header.phpThings look great. Now I need to customize the file:
/plugins/buddypress/bp-themes/bp-default/members/single/home.phpIt’s not in the BuddyBoss theme so I have copied the file from the plugin to the child theme:
themes/buddyboss-child/buddypress/members/single/home.phpBUT it is now not calling my customized file member-header.php
It appears to be using the original.If I change the line in home.php:
<?php locate_template( array( ‘members/single/member-header.php’ ), true ); ?>to:
<?php include( STYLESHEETPATH . ‘/buddypress/members/single/member-header.php’ ); ?>It works. That doesn’t seem right.
Then the plugin ‘BP Custom Background for User Profile’ stops working, so I assume making the above change is causing issues.My question,
Why when bringing in the file /members/single/home.php
Has the line:
<?php locate_template( array( ‘members/single/member-header.php’ ), true ); ?>Stopped working?
Cheers
AlexAnswers
November 25, 2014 at 10:13 pm #33678@wombleOK I think I have it!
It’s because I copied the file from here to my childtheme:
/plugins/buddypress/bp-themes/bp-default/members/single/home.phpI should have copied the file from here to my childtheme:
/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.phpWhy there are two places in the buddypress plugin with the same file names…………
That said in your documentation you do say to copy it from /buddypress/bp-templates/bp-legacy/
So my mistake. Nothing to see here. Move along!
November 26, 2014 at 6:39 pm #33686@alyssa-buddyboss
AlyssaParticipantHaha, I’ll close this out then. Please open a new topic if you need future help.
- The question ‘Customizing Using a Childtheme Problem’ is closed to new replies.