Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: using placeholder attribute instead of label

@danbp

Participant

Hi @mmadden,

not sure i understand what you want to achieve. Are you creating a register page from scratch ?
Anyway….
Open the original BP register file (/buddypress/bp-templates/bp-legacy/buddypress/members/register.php). It contains many placeholders and conditionnals

So, for the mandatory NAME xprofile group (the only one you use), you have line 65

if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group();

--- blah---

Line 75 sit this placeholder do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); where you can hook your additionnal information.

Line 98 there’s another one: do_action( 'bp_custom_profile_edit_fields' ); just above this function:

<p class="description"><?php bp_the_profile_field_description(); ?></p>

In register.php, the section you speak about goes from line 50 to 112
From /***** Extra Profile Details ******/ to </div><!-- #profile-details-section -->

Of course, you can also add your own placeholder to your register template.

Sorry if i’m wrong.

Skip to toolbar