-
Author
-
March 29, 2018 at 19:59 #193390Joshuapaul80Participant
Hello,
I would like to display the first and last name of a user on their profile page if available, and if not, display their @mention name. Currently, all users show the @mention on their profile by default. Please attached screenshot.
How can I change this to show the users first and last name underneath their profile photo?
Thanks,
Josh
Attachments:
You must be logged in to view attached files.March 30, 2018 at 15:45 #193426LauraModeratorHello, i can help you with that, but i would need ftp access, the login shared doesnt seem to work for me, let me know 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
April 2, 2018 at 01:45 #193632LauraModeratorHello 🙂
Changed! I created the folders buddypress > members > single inside your child teme and created the field cover-image-header.php with the following contentCOPY CODE<?php /** * BuddyPress - Cover Header * * @package BuddyPress * @subpackage bp-legacy */ ?> <div></div> <?php /** * Fires before the display of a member's header. * * @since 1.2.0 */ do_action( 'bp_before_member_header' ); ?> <div class="rounded"> <a>"> <?php bp_displayed_user_avatar( 'type=full' ); ?> </a> <?php do_action( 'bp_member_online_status', bp_displayed_user_id() ); ?> </div><!-- #item-header-avatar --> <div> <?php $name = bp_get_member_profile_data('field=Name');?> <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> <h4 class="user-nicename hover-tip click-tip" data-toggle="tooltip" data-container="body" data-title="<?php bp_last_activity( bp_displayed_user_id() ); ?>" data-placement="bottom"><?php echo $name; ?></h4> <?php endif; ?> <!--<span class="activity"><?php /*bp_last_activity( bp_displayed_user_id() ); */?></span>--> <?php do_action( 'bp_before_member_header_meta' ); ?> <div> <?php if ( bp_is_active( 'activity' ) ) : ?> <div> <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> </div> <?php endif; ?> <div><?php do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons --> <?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 */ do_action( 'bp_profile_header_meta' ); ?> </div><!-- #item-meta --> </div><!-- #item-header-content --> <?php do_action( 'bp_after_member_header' ); ?> <?php if ( sq_option( 'bp_nav_overlay', 0 ) == 1 ) : ?> <div> <div class="item-list-tabs no-ajax">" role="navigation"> <ul class="responsive-tabs"> <?php bp_get_displayed_user_nav(); ?> <?php /** * Fires after the display of member options navigation. * * @since 1.2.4 */ do_action( 'bp_member_options_nav' ); ?> </ul> </div> </div> <!-- #item-nav --> <?php endif; ?> <?php do_action( 'template_notices' ); ?> <script> (function($) { $(document).ready(function () { $(document).ajaxComplete(function (event, xhr, settings) { if(settings.data){ if(settings.data.indexOf("action=bp_cover_image_delete") != -1){ $('body').removeClass('is-user-profile'); } } }); if(typeof(bp) !== 'undefined' && typeof(bp.Uploader) !== 'undefined' && typeof(bp.Uploader.filesQueue) !== 'undefined'){ bp.Uploader.filesQueue.on( 'add', function(){ $('body').addClass('is-user-profile'); }); } }); })(jQuery); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
April 4, 2018 at 08:04 #193761LauraModeratorGlad to help 🙂 If you are happy with the support please rate us 5 stars at themeforest, that would help a lot 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura 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 🙂
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.