bbpress(plugin) Theme Compatibility

There are many threads on bbpress forum where people are almost frustrated with the problem of making their theme work with the new bbpress plugin version.

Particularly, they have this problem with making a theme, child-theme and applying it to the forum.

Ex: Your blog has sidebar and you don’t want to have sidebar in your forum.

I had the same problem, and solved it after trying it for a long time. Now I feel like, why the hell did I spend so much time on this simple thing 🙂

bbpress-logo

Without much delay: In this example I’ll illustrate by keeping the official “bbPress (Twenty Ten)” theme in mind, which is present in /wp-content/plugins/bbpress/bbp-themes/bbp-twentyten folder by default when you install the bbpress plugin.

1. Move twentyten theme from /wp-content/plugins/bbpress/bbp-themes/ to /wp-content/themes/.
Note: You can rename the folder with any name you like.

2. Now get into twentyten theme and edit style.css file. Add Template: yourWordpressThemeFolderName (yes add the folder name of your present wordpress theme) to your style.css files comment section, as shown below.

If your WordPress theme name is MyTheme. You have to add Template: MyTheme to style.css file of twentyten bbpress theme.

/**
* Theme Name: bbPress (Twenty Ten)
* Theme URI: http://bbpress.org
* Description: Adds bbPress forums to the Twenty Ten theme
* Author: WordPress and bbPress teams
* Version: 1.2
* Tags: bbpress, black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
* Template: MyTheme
*
**
*
* This file intentionally left blank. Styles are enqueued in functions.php
*
* 1 – ./css/bbpress.css
*
**/

3. Now you have made the twentyten theme a child theme of your present WordPress theme.
4. Now log into your WordPress dashboard. Goto Appearance, and activate the child-theme.

To remove the sidebar:
Goto the child theme, inside that bbpress folder and comment these line of code /* < ?php get_sidebar(); ?> */ in page-front-forums.php and page-front-topics.php files.

If this method does not work, then create a file called sidebar.php and drop it inside your main theme folder. sidebar.php must be blank.

Now Reload your forum :p

How To Migrate From Stand-alone bbPress to bbPress plugin

Hope you know about the latest buzz in the WordPress world!! They have released the stable version of bbpress WordPress plugin to the general public and it is called bbpress 2.0

The main advantage is, you do not have to worry about the WordPress integration anymore, because it’s now an extension of WordPress and it integrates with WordPress seamlessly.

What if you were using stand-alone versions of bbpress so far and now want to switch to the latest bbpress plugin without losing your valuable content.

There is a easy way to do this.

Goto WordPress Plugin Directory, download bbpress plugin and install it, as you install any other normal plugin.

Now inside your WordPress dashboard, under Tools, click on Import.
Now click on bbPress Standalone(Import your bbPress standalone board.)

bbPress-Standalone

Make sure to backup everything before proceeding further.

bbpress-config-file

Now give the path to bb-config.php file of your old installation. and hit proceed.

bbpress-importing

bbpress-importing-done

Once the process is completed, you can check it by renaming the old forum installation folder to something else and check working of new forum by visiting yourdomainname.com/forums/