Skip to:
Content

bbPress.org

Opened 15 years ago

Closed 15 years ago

#1712 closed enhancement (invalid)

add cutom classes to bbp_topic_class() and bbp_get_topic_class()

Reported by: rolandinsh Owned by:
Priority: normal Milestone:
Component: Component - Topics Version: 2.0
Severity: normal 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 15 years ago.

Download all attachments as: .zip

Change History (3)

#1 @rolandinsh
15 years ago

  • Keywords needs-testing added

#2 @johnjamesjacoby
15 years ago

  • Keywords has-patch needs-testing removed
  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

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 15 years ago by johnjamesjacoby (previous) (diff)
Note: See TracTickets for help on using tickets.