This topic has 2 replies, 2 voices, and was last updated 8 years by Ayoade.

  • Author
  • #97130
     Ayoade
    Participant

    In the attached picture, the default information on that line of buddypress profile is always activity. Can I change that to something else?

    For example, my members have a field for professional title in their profile. Can I assign this field to show instead of their last activity?

    If that is not possible, please tell me the alternatives I have.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #97138
     sharmstr
    Moderator

    You can hide the activity with this css

    COPY CODE
    
    #item-header #latest-update {
        display: none;
    }
    

    And you can add profile fields data with this. Put it in your child theme’s functions.php file.

    COPY CODE
    
    add_action( 'bp_profile_header_meta', 'display_user_info' );
    function display_user_info() {
    	echo "Field Name Here: " . bp_profile_field_data('field=Field Name Here');
    	echo "</br>";
    	echo "Another Field Name Here: ". bp_profile_field_data('field=Another Field Name Here');
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #97183
     Ayoade
    Participant

    Excellent man! I appreciate this.It works nicely.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?