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)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.