Skip to:
Content
Pages
Categories
Search
Top
Bottom

Child theme – profile.php


  • muskokee
    Participant

    @muskokee

    Hi everyone, I am a little stumped as to why the profile-loop disappears when I add the profile.php page to my child theme (buddypress/members/single/).

    I would like to modify the profile.php page to add an additional template with corresponding query vars but every time I add the page (unmodified from the default folder) to my child theme the loop disappears! I have BuddyPics and BP Follow installed and they display properly when clicked…just not the loop!

    Thanks for any insight
    Sheri

Viewing 6 replies - 1 through 6 (of 6 total)

  • danbp
    Participant

    @danbp

    hi @muskokee
    from where do you pick profile.php: bp-default or bp-legacy ?
    Do you use other custom function in bp-custom.php or child-theme functions.php ?
    What when BuddyPics and BP Follow are deactivated ?


    muskokee
    Participant

    @muskokee

    Thanks for your reply @danbp! I got the profile.php from bp-default. I had previously placed bp-default custom edit.php and change-avatar.php inside the child theme at single/profile folder without a problem.

    Yes, I use many custom functions in my functions.php file but I have not made use of bp-custom.php.

    I also have a custom template titled plugin-buddypress.php in my child-theme folder above the buddypress folder.

    I disabled all the profile plugins (pics, follow, cover, conditional field groups) and commented out all functions acting on Buddypress in my functions.php file. This did not make a difference! I still have a blank loop with the profile.php added to my child theme.

    //EDIT
    And I am running BP 2.3.2.1 on WP 4.2.4


    muskokee
    Participant

    @muskokee

    Sorry, part of the above is not true. I am using bp-custom.php. The only function in there is to disable BP registration.

    //EDIT

    Oh my! I just found this post https://buddypress.org/support/topic/bp-legacy-in-bp-templates/ . Am I supposed to be using the files from bp-legacy as this post suggests? If so, what a terrible name for a folder!


    shanebp
    Moderator

    @shanebp

    Yes, bp-legacy. Agreed, terrible name.


    muskokee
    Participant

    @muskokee

    Yikes! I will transfer all my custom work to the proper files then and see if that makes a difference.


    muskokee
    Participant

    @muskokee

    That did it! Changed over to legacy files and now I can place and modify the profile.php in my child-theme (another not-so-nice name for describing a regular wordpress theme).

    Small suggestion: make this knowledge (bp-legacy over bp-default) a BIG note in the theme development documentation of this site!

    Thanks @danbp for your question which prompted me to dig further and @shanebp for confirming my improper use of bp-default.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Child theme – profile.php’ is closed to new replies.
Skip to toolbar