Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,955
- How-to & Troubleshooting
- 129,247
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,473
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,165
-
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