Hi Brajesh,
full name and professional skill after space , just like name frances space and then software engineer as a skill write .
http://forum.deviantart.com/devart/general/1816620/
this link name nickly barkla and tagline professional tradional artist you can see itThank you
FrancesHi Frances,
Is it feasible that you create a profile field as tagline and then I provide you some code to show it after the name?That will be the simplest implementation.
Regards
BrajeshHi Brajesh,
yes it is feasible that I create a profile field as tagline in register page you check it.
http://www.worthyadvocates.com/register/Thank you.
Please add the following code to your bp-custom.php
/** * Append tag line to the user mention name. * * @param string $mention_name name used for mention. * * @return string */ function buddydev_custom_show_user_tagline( $mention_name ) { $field_tagline_id = 6; // change it if you change your tagline field id. $tagline = esc_js( xprofile_get_field_data( $field_tagline_id, bp_displayed_user_id() ) ); if ( empty( $tagline ) ) { return $mention_name; } return $mention_name . "<span class='user-tagline-separator'>|</span><span class='user-tagline'>{$tagline}</span>"; } add_filter( 'bp_get_displayed_user_mentionname', 'buddydev_custom_show_user_tagline' );
Please do let me know if that works for you or not?
Thank you
Brajeshsorry please tell me bp-custom.php which file where is it exist . i didn’t understand
Thankyou- This reply was modified 7 years, 3 months ago by Frances Stark.
Hi,
Please check if there is a file named bp-custom.php in your plugins directory(wp-content/plugins)If it is not, you can create one(Are you familiar with php, if not, then avoid it).
Alternatively, you can put the code in your theme’s functions.php
You can open the functions.php of you theme and check if your theme has a
?>
at the bottom of the file,
If it is there, Please add the code just before it.
If it is not there, You can add the code at the bottom and it will work.
Hope that helps.
Regards
BrajeshHi Brajesh,
yes it is working the code.
Thank you
Frances
The topic ‘ [Resolved] Tag line’ is closed to new replies.