BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Customizing Using a Childtheme Problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    #33677
    @womble

    Hi 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.php

    Things look great. Now I need to customize the file:
    /plugins/buddypress/bp-themes/bp-default/members/single/home.php

    It’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.php

    BUT 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
    Alex

    Answers

    #33678
    @womble

    OK 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.php

    I should have copied the file from here to my childtheme:
    /plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php

    Why 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!

    #33686

    Alyssa
    Participant
    @alyssa-buddyboss

    Haha, I’ll close this out then. Please open a new topic if you need future help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘Customizing Using a Childtheme Problem’ is closed to new replies.