Add a Message To bbPress Main Forums Page

Add a message above the bbPress forums with this function. This will show up on the main forums page ( forum archives ), not on each individual forum page. My example below wraps my introduction text in a div with class="bbp-template-notice". That class adds the pale yellow background and border to make the message stand out. You can remove that, and of course, edit the the text.

* hook bbPress to add an intro to main forums page

function smartest_before_forums_loop() {
	echo '<div class="bbp-template-notice"><p>This is as intro to the forums page.<p></div>';

add_action( 'bbp_template_before_forums_loop', 'smartest_before_forums_loop' );

See more:

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this: