This topic has 2 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #55774
     nickzee
    Participant

    Can you please provide a method to adjust the excerpt length in the Buddy Press Activity Stream?

    I am using kleo_bp_activity_stream (with the visual composer) on the home page in the side bar, and the length of the excerpt is way to long.

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #55858
     sharmstr
    Moderator

    That’s a bit tricky. BP creates an excerpt and stores it in the db. (unlike WP who creates an excerpt on the fly in some cases). So, you can override the amount of data that is stored when bp creates the excerpt, but this will also effect the excerpt on the main activity page. Google bp_create_excerpt()

    If you dont want to change the excerpt length when bp creates it, you can copy /k-element/shortcodes/templates/buddypress/kleo_bp_activity_stream.php to your child theme and do a substr on the excerpt yourself. The problem is that the buddypress functions being used also return divs and paragraph tags (formatting), not just the excerpt.

    Bottom line is that Kleo doesnt control any of that. It just stylizes the output of whatever buddypress is returning.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #55860
     sharmstr
    Moderator

    I forgot to say, ask on the Buddypress forums if there is a way to filter the excerpt during display.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?