bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Alternate Post Backgrounds

(3 posts)
  • Started 1 year ago by lolloverminutes
  • Latest reply from lolloverminutes
  • This topic is resolved

Tags:

  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.

    Posted 1 year ago #
  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.

    Posted 1 year ago #
  3. Thank you very much. :D

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.