Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I remove the […] from my activity pages

  • @fitnessblogger

    Participant

    Hi Guys,

    I am sure this must be pretty straightforward but I cant figure out how to remove this […] from my activity boxes??

    It looks like a read more box but you cant’t click on it and it just looks odd??

    Any help would be great!!

    Wordpress V.3.4.2
    BuddyPress V .1.6.1
    http://fitnessblogger.net/groups/

Viewing 6 replies - 1 through 6 (of 6 total)
  • @johnjf

    Participant

    I was wondering about the same thing

    @johnjf

    Participant

    Sorry to bring this back up but does anyone have a solution for this?

    @fitnessblogger

    Participant

    Still not got a solution to this one ? ? ? ?

    @chouf1

    Participant

    hi @fitnessblogger,

    use this in wp-content/plugins/ bp-custom.php
    (If you haven’t this file you have to create it first)

    Tested on 1.6.3

    `function bpfr_excerpt($text) {
    return trim($text,'[…]’);
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 );`

    if you want to replace […] by ‘xxx’ you use this

    `function bpfr_excerpt($text) {
    return str_replace( ‘[…]’,’xxx’,$text );
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 ); `

    Take care with copy/pasting from here. Quotes must be single quotes at least.

    @fitnessblogger

    Participant

    Thanks @Chouf1

    I will have a look at this later tonight 🙂

    @chouf1

    Participant

    oops !  dots are stripped here….
    in the brackets you should enter & hellip; (retrieve also the white space  &! hellip) not dots

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I remove the […] from my activity pages’ is closed to new replies.
Skip to toolbar