-
Author
Tagged: excerpt, buddypress activity
-
April 23, 2015 at 03:32 #55774nickzeeParticipant
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.April 23, 2015 at 14:39 #55858sharmstrModeratorThat’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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
April 23, 2015 at 14:43 #55860sharmstrModeratorI 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.