There were two other things I did that I forgot in my last post. The sidebar was taking a huge area below the forum and had a sitemap. To turn that off, I removed this line from all three php pages (archive-forum, single-user, and search-forum). Just delete this line if you don’t want the sidebar. If you want the sidebar, I’m not sure what you would do, but there is a video on youtube where a guy explains how to do it.
<?php get_sidebar(); ?>
Also, the forum pages were filling the entire width of the browser. To make it fit in the same width as the rest of the customizr pages, I added div tags around the forum content. There is probably a css solution for this that is better, but this worked for me.
<div id="main-wrapper" class="container">
<div id="forum-front" class="bbp-forum-front" " >
<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
<div class="entry-content" >
<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
</div>
</div><!-- #forum-front -->
</div>
Notice that what’s new here that isn’t in your archive-forum.php is this line and the closing div at the end.
<div id="main-wrapper" class="container">
To make search work, you have to make a copy of archive-forum.php, and edit the content so it looks like this:
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="main-wrapper" class="container">
<div id="forum-front" class="bbp-forum-front" " >
<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
<div class="entry-content" >
<?php bbp_get_template_part( 'content', 'search' ); ?>
</div>
</div><!-- #forum-front -->
</div>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_footer(); ?>
Then name the file search-forum.php and put it in the customizr theme root folder where you also saved archive-forum.php and single-user.php.