yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme
Step by step guide to setting up a bbPress forum – Part 1
That’s the problem the theme only has the main index.php and another nor that is full width it doesn’t have one with just one sidebar
Thanks
anyone able to help me with this ? 🙁
can you post the code for the full width one here please
Thanks Robin
<?php
/**
* Template Name: Full Width, no sidebar(s)
*/
get_header(); ?>
<div id="main-fullwidth">
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* Find the post formatting for the pages in the post-page.php file
*/
get_template_part('post', 'page');
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
endwhile;
else :
get_template_part('post', 'noresults');
endif;
?>
</div><!-- #main-fullwidth -->
<?php get_footer(); ?>
ok, save this file as bbpress.php into the root of your theme
ie
wp-content/themes/%yourthemename%/bbpress.php
where %yourthemename% is the name of your theme !! 🙂
Then add a line above the last, so that it now reads
<? get_sidebar(); ?>
<?php get_footer(); ?>
bbpress will now use that page as the one for bbpress, and should display a sidebar.
‘tweaks’ should tghen sue this fro your forum sidebar.
Come back if any of that doesn’t work, or you need more explanation
Hi Robin
Thanks for getting back, I have done as you suggested however it didnt work – if you look at http://chill4uscarers.co.uk/forumtest/ you can see what I mean
all i want is the bbpress sidebar like the image
Still doesn’t work 🙁 this is driving me mad I have been trying it all day and when you re posted I thought woooohooooo , but sadly no 🙁
This is my code –
<?php
/**
* Template Name: Full Width, no sidebar(s)
*/
get_header(); ?>
<div id="main-fullwidth">
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* Find the post formatting for the pages in the post-page.php file
*/
get_template_part('post', 'page');
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
endwhile;
else :
get_template_part('post', 'noresults');
endif;
?>
</div><!-- #main-fullwidth -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
ok, I downloaded the theme and had a play
you need to create this file as bbpress.php
<?php global $theme; get_header(); ?>
<div id="main">
<?php $theme->hook('main_before'); ?>
<div id="content2">
<?php $theme->hook('content_before'); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* Find the post formatting for the pages in the post-page.php file
*/
get_template_part('post', 'page');
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
endwhile;
else :
get_template_part('post', 'noresults');
endif;
?>
<?php $theme->hook('content_after'); ?>
</div><!-- #content -->
<div id="sidebar-primary">
<?php
if(!dynamic_sidebar('sidebar-bbpress')) {
/**
* The primary sidebar widget area. Manage the widgets from: wp-admin -> Appearance -> Widgets
*/
$theme->hook('sidebar-bbpress');
}
$theme->hook("sidebar_primary_after");
?>
</div><!-- #sidebar-primary -->
<?php $theme->hook('main_after'); ?>
</div><!-- #main -->
<?php get_footer(); ?>
Then in your style.css you need to add the following to the bottom just above the
/* =END
#content2 {
float: left;
overflow: hidden;
width: 630px;
}
That should do it
Brilliant worked a treat !! Now to move all smf posts to bbpress 🙁
thanks Robin for all your help
Great – I do hate that them authors won’t write variants of themes for no-sidebar/1 sidebar/2 sidebar, it would make life so much easier 🙂