Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide "-more-" in BP activity stream blog excerpts?

  • @rosyteddy

    Participant

    How to hide “-more-” in BP activity stream blog excerpts?
    Using WP 4.1.1, BP 2.2.1, type a new blog post and insert more as shown in the picture.
    This “more” than appears oddly in the BP stream which is utterly confusing to the reader.

    Thanks for your help.

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

    Participant

    Hi,

    which theme do you use ?

    @danbp

    Participant

    Forgot my question ! It’s not a theme issue, but a missing in the core. I was curious about that issue and tested it. And finally opened a ticket (#6246) with more details. Don’t hesitate to follow it and/or to give your opinion, patch or what ever can be considered as usefull to solve this bug. 😉

    @rosyteddy

    Participant

    Hi danbp


    @danbp

    Thank you so much, I am not a coder, cannot patch. I do see some progress on that ticket but need to have an idea on exactly what to change in what file to correct this. If possible, please tell me.

    Thanks.

    @rosyteddy

    Participant

    In plugins\buddypress\bp-activity\bp-activity-template.php

    $thisvar =  apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
    		 $thisvar  = str_replace("more", "", "$thisvar");
    		 return $thisvar;

    This vanishes “more” but I am unable to vanish “–” using str_replace

    @hnla

    Participant

    Have to admit to personally feeling as though the <!-- more --> construct being slightly redundant, do you really need to use it? Could you not use hand crafter excerpts instead to gain control on exactly what your excerpts display?

    @rosyteddy

    Participant

    Thanks @hnla
    This is not possible. Its a multisite with multiple users having individual blogs. Some may choose to use manual excerpt, some may choose to use <!-- more -->

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide "-more-" in BP activity stream blog excerpts?’ is closed to new replies.
Skip to toolbar