Skip to:
Content

bbPress.org

Opened 13 years ago

Closed 13 years ago

#1712 closed enhancement (invalid)

add cutom classes to bbp_topic_class() and bbp_get_topic_class()

Reported by: rolandinsh's profile rolandinsh Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Component - Topics Keywords:
Cc:

Description

simply add custom classes to bbp_get_topic_class() and bbp_topic_class().

While bbp_get_topic_class() is already using post_class filter, this is just small and faster solution.

(copy from WordPress post_class() )

Attachments (1)

bbp-topic-template.php (106.8 KB) - added by rolandinsh 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @rolandinsh
13 years ago

  • Keywords needs-testing added

#2 @johnjamesjacoby
13 years ago

  • Keywords has-patch needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi rolandinsh. The above change is not necessary. You can use the 'bbp_get_topic_class' filter and add extra classes as needed. Since this is a template tag, it's easier to make a custom function + filter than it is to change the theme files.

Note that the 'bbp_get_forum_class' and 'bbp_get_reply_class' filters work similarly.

Last edited 13 years ago by johnjamesjacoby (previous) (diff)
Note: See TracTickets for help on using tickets.