- 
		Author
- 
		
			
				
August 18, 2016 at 17:24 #133016eric-ria ParticipantThe standard header for a BuddyPress member page has a picture of the avatar, @username and when they were last active. I would like to customize the look of this section, in the cover-image-header.php there is a comment, 
 <?php
 /***
 * If you’d like to show specific profile fields here use:
 * bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
 */And I am not sure how what the php would be to display the basic contact info I have created in the profile. So Name, City, Phone, email. If I can get them display, I can style it with CSS. I can attach an image of what I am looking for. Attachments:You must be logged in to view attached files.August 18, 2016 at 19:24 #133076Radu ModeratorYes, they can be styled with CSS but when you do the structure add a class for every element to can control it better. Cheers 
 R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 18, 2016 at 21:25 #133097eric-ria ParticipantOk so how do I in php add those elements? there is this line in the cover-image-header.php 
 <?php
 /***
 * If you’d like to show specific profile fields here use:
 * bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
 */So could I have an example of what to put her to show the user’s name? August 19, 2016 at 16:05 #133193Radu ModeratorHi, You should have low-medium PHP/HTML skills to can do that Here it’s a typical example COPY CODE<?php bp_member_profile_data( 'field=name' ); bp_member_profile_data( 'field=city' ); bp_member_profile_data( 'field=email' ); bp_member_profile_data( 'field=city' ); ?>Similar : https://archived.seventhqueen.com/forums/topic/how-to-show-extended-profile-field-value-programatically 
 https://archived.seventhqueen.com/forums/topic/members-carousel-discovery-pageCheers 
 R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 19, 2016 at 16:51 #133205eric-ria ParticipantThanks I will try this, but link to the How to show extended profile field value programatically goes to a 404 error. August 19, 2016 at 18:19 #133213Radu ModeratorFor me the link it works, I will attach a photo COPY CODEfunction add_custom_field() { bp_member_profile_data( 'field=Heading' ); } add_action( 'bp_directory_members_item', 'add_custom_field');Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:You must be logged in to view attached files.
- 
		AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.
 
							
						
