#34649
 sharmstr
Moderator

I went a different route. All that really needs to happen is setting the class name of the widget to “widget_recent_entries” and it will pick up all the styling from the posts widget. So I just copied the widgets code and created a new custom widget.

Attached is forum-widget.txt. If you want to use it, put it in your child theme (change .txt to .php) and call it in your functions.php file.

COPY CODE


require_once( trailingslashit( get_stylesheet_directory() ) . 'whateverdirectoryyouwantinkleo-child/forum-widgets.php' );

Its only for (bbpress) Recent Topics, but you can do the same with the other ones. Just rename the classes and functions by putting custom_ in front of them. And changing

COPY CODE

'classname'   => 'custom_widget_display_topics'

to

COPY CODE

'classname'   => 'widget_recent_entries',
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

Log in with your credentials

Forgot your details?