Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,917
- How-to & Troubleshooting
- 129,136
- Creating & Extending
- 25,779
- Requests & Feedback
- 9,463
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,399
- Miscellaneous
- 9,162
-
you can do it with php and using a child (recommended):
This above the activity stream loop somewhere put this code:
<?php
$style_classes = array('style-a-class','style-b-class');
$style_index = 0;
;?>
Then this inside the li tag that gets looped through for each activity post:
<li <?php $s = $style_index%2; echo "class=$style_classes[$s]"; $style_index++; ?>>
Works great for any wp template not just a buddypress.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS