Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to repair Last active text for groups

  • Profile photo of scottrosene
    scottrosene
    Participant

    @scottrosene

    I have seen the thread on removing the “last active” text for members. We are having a slightly different issue with our site, however, where we just want to modify the text. For some reason the word “ago” appears twice after each of the groups, as pictured below.

Viewing 1 replies (of 1 total)
  • Profile photo of koendb
    koendb
    Participant

    @koendb

    You probably added this secondary ago somewhere and I would start by searching for the text ‘ago’ in bp-custom.php and functions.php and the right template files if you customized any of these.

    If you can’t solve it that way you could try this:

    function remove_buddypress_ago( $output) {
    $output = preg_replace( '[ago]', ' ', $output );
    return $output;
    }
    add_filter('bp_core_time_since', 'remove_buddypress_ago');
Viewing 1 replies (of 1 total)
  • The topic ‘How to repair Last active text for groups’ is closed to new replies.