1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Add a Forum Description on a Single-Forum Page

How to Add a Forum Description on a Single-Forum Page

Introduction

BuddyBoss only displays the forum description on the forums archive page by default. You can show the description when viewing a single forum page either within a group or a standalone forum by adding a small custom function to your active theme. This ensures users can see the forum details directly on the forum page. This guide explains how to add a forum description on a single-forum page.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Navigate to Appearance > Theme Editor in your WordPress admin dashboard
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select
  3. From the Theme Files list, open Theme Functions (functions.php)
  4. Add the following code just before the closing PHP tag (?>):
function bbp_singleforum_description() {

    echo '<div class="bb-forum-content-wrap"><div class="bb-forum-content">';

    echo bbp_forum_content();

    echo '</div></div>';

}

add_action( 'bbp_template_before_single_forum', 'bbp_singleforum_description');
  1. Click Update File to save the changes

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: The description is not appearing.
A: Make sure the forum has a description filled in the forum settings.

Q: Can I style the description differently?
A: Yes. Use custom CSS targeting .bb-forum-content-wrap or .bb-forum-content.

Q: Will this affect the archive page?
A: No. The forum description on the archive page remains unchanged.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.