This topic has 1 reply, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #45855
     bananalust
    Participant

    Hi – I’d like to add more than one field similar to the about me field.
    I’d also like to display a title before each field in the member search results

    so each member would maybe look like:
    First Last Name

    Data / Data / Data

    About Me
    blah blah blah

    Professional Summary
    blah blah blah

    Can you help me add a title before the fields and also add more than one bp_members_details_field

    COPY CODE
    add_action('after_setup_theme',' kleo_my_member_data');
    function kleo_my_member_data()
    {
    	global $kleo_config;
    	//this is the details field, right now it take the “About me” field content
    	$kleo_config['bp_members_details_field'] = 'About me';
    	//this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    	$kleo_config['bp_members_loop_meta'] = array(
    	'I am',
    	'Type',
    	'City'
    	);
    } 
    #45965
     Laura
    Moderator

    Hello, copy bp-functions.php from custom_buddypress folder inside sweetdate theme folder and paste it inside custom_buddypress folder of sweetdate child, if there is not that folder, just create it, then edit bp-functions.php in your new folder of child theme and find this:

    COPY CODE
    
     echo '<div class="search-meta">';
     echo apply_filters('kleo_bp_members_dir_name','<h5 class="author"><a href="'. bp_get_member_permalink().'">'. bp_get_member_name().'</a></h5>');	
    

    then change it for this:

    COPY CODE
    	
     echo '<div class="search-meta">';
     echo apply_filters('kleo_bp_members_dir_name','<h5 class="author"><a href="'. bp_get_member_permalink().'">'. bp_get_member_name().'</a></h5>');	
     echo '<strong> YOUR TEXT HERE</strong>';
    

    Right now you can have one field like about me showing

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?