Forums List Widget – Make dynamic Classes for the Link
I am looking for a way to update my functions.php file to add a dynamic additional class to the bbPress Forums List Widget. Basically I would like the current code of:
<li><a class="bbp-forum-title" href="<?php bbp_forum_permalink( $widget_query->post->ID ); ?>"><?php bbp_forum_title( $widget_query->post->ID ); ?></a></li>
I would like to add an additional dynamic class or ID to the link. I want to do this so I can add different background images to each forum if I choose through CSS.
- You must be logged in to reply to this topic.