Re: Integrate WP Twentyten and bbPress Kakumei
I’ve gotten this to work this way so far:
Put this line in bb-config.php
require_once( '/your/full/path/wp-load.php');
In the files listed below, replace
<?php bb_get_header(); ?> with
<?php get_header(); ?><div id="container">
<div id="content" role="main">
<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
and <?php bb_get_footer(); ?> with
</div>
</div>
<?php get_footer(); ?>
404.php
edit-post.php
favorites.php
forum.php
front-page.php
login.php
password-reset.php
profile-base.php
profile-edit.php
profile.php
register.php
register-success.php
search.php
stats.php
tag-single.php
tags.php
topic.php
I use Twentyten with one right sidebar. I decided I didn’t want it in the bbPress section of the site. If you want it, replace the footer code above with this:
</div>
<?php get_sidebar(); ?><div id="primary" class="widget-area" role="complimentary">
</div><?php get_footer(); ?>
I want bbPress to fill the width of the “container”. I can the following in-line style in each page (<div id=”content” role=”main” style=”width: 95%; font-size: 1.2em;”>`), but I’m sure I can use the style sheet to define a class or something and do it right – that is once I get Twentyten to read the bbPress style sheet.
I’d also like to rearrange the objects on the page, which I may also work on once I can use the style sheet.
May not like it when I’m done, but it’s been a learning experience!