Yes, I know how to do it. But WordPress doesn’t have an easy way to edit a plugin’s files. So it’s rather complex.
Let me give you an example.
.
Let’s move the verified badge on the big avatar photo to next to the big username:
- First, we need FTP access to the site’s files.
- Then we need to go to wp-content > plugins > buddypress-verified folder.
- Grab buddypress-verified’s functions.php file (the plugin’s functions.php, not the theme’s).
- Find the line that say
add_filter( 'bp_get_displayed_user_avatar', 'bp_show_verified_badge' );
- Change bp_get_displayed_user_avatar to bp_get_displayed_user_mentionname
add_filter( 'bp_get_displayed_user_mentionname', 'bp_show_verified_badge' );
- Save it.
Now the badge will be in the user_mentionname area, but it’s position nicely. So some custom CSS is needed:
#item-header-content {
position: relative;
}
#buddypress span#bp-verified-header {
top: 0;
right: 0;
left: auto;
}
#buddypress div#item-header-cover-image h2 a, #buddypress div#item-header-cover-image h2 {
padding-right: 30px;
}
And here’s the result: screenshot of result
That works on any name length.
.
That’s just a part of the complete code though. Because the badge appears on multiple instances (activity feed, comments, etc.), we’ll need to go through and change for each of them.
If you’re okay with editing the plugin’s source files, then let us know. We can give you the full code to copy-paste. But keep in mind: you do need FTP access to your site and the correct functions.php file, plus a backup version of it. Editing PHP file might lock you out of the admin panel of the site.
.
@andrew or any forum mod that’s reading this, could you please let me know whether I’m allowed to take the plugin, edit it, then zip it, and post a download link for another user?