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 | 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
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.