Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress file in child theme

  • @richdal

    Participant

    Using WordPress 4.4.2 and BuddyPress v2.5.0

    I had setup a child theme so I could make modifications to WordPress and BuddyPress without messing with the core program. I’m using the Genbu theme so based on the information here (https://buddypress.org/support/topic/register-php-3/) I copied

    Copied: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php

    Child theme: /wp-content/themes/genbu-child/buddypress/members/register.php

    I was able to modify parts of the form that were part of WordPress, but wasn’t seeing any HTML related to the BuddyPress profile fields. I dug around and found this BuddyPress file that would affect the profile form fields on the register page and user profile page.

    /wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

    I can’t figure out how to get that working in my child theme though. What directory location am I suppose save to on my child theme? I tried setting it up here, but doesn’t look like it’s loading at all

    /wp-content/themes/genbu-child/buddypress/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • @richdal

    Participant

    Found an outside link where someone is trying to modify the same information that I am.

    http://stackoverflow.com/questions/25485299/how-to-add-placeholder-in-buddypress-registration-how-to-make-field-descriptio

    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();

    Sounds like I might need to copy and rename the BP_XProfile_Field_Type_Textbox class and put that in my functions.php file. Hopefully I can edit that there.

    @richdal

    Participant

    Had to also copy over a couple functions to my theme’s functions.php file, rename them and make a couple minor changes, but was successful for me.

    bp_xprofile_get_field_types()
    bp_xprofile_create_field_type()

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BuddyPress file in child theme’ is closed to new replies.
Skip to toolbar