Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Display description under label in profile fields? (2 posts)

Started 1 year ago by: katemgilbert

  • Profile picture of katemgilbert katemgilbert said 1 year ago:

    In the profile form (edit-profile.php and register.php), the field descriptions are displayed beneath the input box. I want them to be displayed beneath the field label and above the box instead. I can see from a code inspector that it is the class p.description, but I can’t find where this is called in any of the template files. Can anyone help me move the position of the description?

  • Profile picture of ARHistoryHub ARHistoryHub said 1 year ago:

    1. Go to members/single/profile/edit.php in your theme.
    2. Find and delete this line <p class="description"><?php bp_the_profile_field_description() ?></p>
    3. Paste this </br><p class="description"><?php bp_the_profile_field_description() ?></p> after each instance of this line <?php _e( '(required)', 'buddypress' ) ?><?php endif; ?>.

    And it’s a similar sort of process for the register.php – found in the registration folder in your theme.
    Sloppy, but oh well.