Skip to:
Content
Pages
Categories
Search
Top
Bottom

Amending bbpress templates

Codex HomeThemes → Amending bbpress templates

bbPress has a number of templates that alter how the forums are displayed, and you can alter these to entirely change how the forums display.

you’ll find these templates at

wp-content/plugins/bbpress/templates/default/bbpress/

The index for the forums starts by using

content-archive-forum.php

If you open this up you will see that it them calls a further template by using the function bbp_get_template_part

<?php bbp_get_template_part( ‘loop’,     ‘forums’    ); ?>

(this translates to loop-forums.php)

this in turn calls

<?php bbp_get_template_part( ‘loop’, ‘single-forum’ ); ?>

(this translates to loop-single-forum)

and so on.

If you need to alter a bbpress template, then you should really do this in a child theme, as otherwise theme upgrades will overwrite this.

see https://codex.bbpress.org/functions-files-and-child-themes-explained/ on how to set up a child theme

To alter a template

Create a bbPress folder in your theme:

wp-content/%yourthemename%/bbpress

Where %yourthemename% is the name of your theme.

Then go into

wp-content/plugins/bbpress/templates/default/bbpress/

Copy whatever file(s) you wish to change into the bbPress folder in your theme. bbPress will now use this file instead of the default, and you can amend this file.

Skip to toolbar