Pardon my probable ignorance, but I was working on modding a wordpress theme to work with my bbPress install. I was wondering how to make it so that posts alternate color.
bbPress support forums » Themes
Alternate Post Backgrounds
(3 posts)-
Posted 1 year ago #
-
If you look at the default topic template (
bb-templates/topic.php), you will see<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>the
alt_class()function gives every otherlielement aclass="alt".So if you use that function in your topic template, you can put something like
.alt { background-color: red }in your CSS file.
Posted 1 year ago # -
Thank you very much. :D
Posted 1 year ago #
Reply
You must log in to post.