Add a CSS class to the activity posts display-name
-
How do I filter the activity posts display-name so it has a CSS class?
I’ve located the apply_filter line in
buddypress/bp-members/bp-members-functions.php:
return apply_filters( 'bp_core_get_userlink', '<a href="' . $url . '" title="' . $display_name . '">' . $display_name . '</a>', $user_id );
and I want to change:
'<a href="' . $url . '" title="' . $display_name . '">' . $display_name . '</a>'
to:
'<span class="display-name"><a href="' . $url . '" title="' . $display_name . '">' . $display_name . '</a></span>'
Any help appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add a CSS class to the activity posts display-name’ is closed to new replies.