# bbPress: Welcome Notice Above the Forum Index

> Shows a short welcome or rules notice above the list of forums, with a link to your community guidelines.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: bbpress, forums, notice
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/bbpress-forum-index-notice/

## Code

```php
if ( ! function_exists( 'is_bbpress' ) ) {
    return;
}

$wpide_bbp_notice_text = 'Welcome to our community! Please be kind, search before posting, and read the guidelines.';
$wpide_bbp_notice_link = home_url( '/community-guidelines/' );

add_action( 'bbp_template_before_forums_index', function () use ( $wpide_bbp_notice_text, $wpide_bbp_notice_link ) {
    printf(
        '<div class="bbp-template-notice info wpide-bbp-welcome" role="note"><ul><li>%1$s %2$s</li></ul></div>',
        esc_html( $wpide_bbp_notice_text ),
        $wpide_bbp_notice_link ? '<a href="' . esc_url( $wpide_bbp_notice_link ) . '">Read the guidelines</a>' : ''
    );
} );
```

## Notes

Edit the text and link at the top; leave the link empty to show the text only.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "bbPress: Welcome Notice Above the Forum Index" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
