Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reposition Extended Profile Field Descriptions


  • ericreynolds007
    Participant

    @ericreynolds007

    Currently, when editing a user profile, the extended profile field descriptions display under a respective field input and privacy setting (“This field can be viewed by…”).

    How can I bump the description up to display below the title and above the field input?

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

  • shanebp
    Moderator

    @shanebp

    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\edit.php
    and adjust it to fit your needs.


    ericreynolds007
    Participant

    @ericreynolds007

    Thank you. I was able to move the code below in the edit.php file. However, I could only place it below the field input or above the field label. I cannot position it between the field label and the field input.

    <div class="clear"></div>
    
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    <div<?php bp_field_css_class( 'editfield' ); ?>>
    
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();
    	do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
    ?>
    				
    <p class="description"><?php bp_the_profile_field_description(); ?></p>
    
    <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    	<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    </p>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reposition Extended Profile Field Descriptions’ is closed to new replies.
Skip to toolbar