Forums

Join
bbPress Support ForumsThemesAlternate Post Backgrounds

Info

Tags

Alternate Post Backgrounds

  1. 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.

  2. 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 other li element a class="alt".

    So if you use that function in your topic template, you can put something like

    .alt { background-color: red }

    in your CSS file.

  3. Thank you very much. :D

  4. You must log in to post.