Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,527
- Creating & Extending
- 25,791
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
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