Search Results for 'remove sidebar'
-
Search Results
-
Topic: Need Help Removing Sidebar
Hi!
I installed the new bbpress plugin and I’d like to style the forum pages using CSS. I use a three column theme and I managed to remove the sidebar in the forum pages through the WP theme functions.php file, but I don’t know how to enlarge the content area just in these pages since the body class attribute doesn’t specify that these are forum pages, so I cannot do something like this:
.forums .entry-content {
width: 100%;
}
Any help would be appreciated!
Thanks in advance
Topic: remove sidebar inove
Folks, I have been trying to get bbPress to fully integrate into my WordPress site for like weeks. I happened up a gentleman who had it figured out. He sent me his notes and I am giving them to you here. One word of caution, even though I followed the instructions carefully, I still don’t have it working – this doesn’t mean his instructions are incorrect … just that I am not skilled enough to figure out all the elements.
His name is Adam Kayce of Bright Coconut. I hope you enjoy his instructions and they speed you toward full integration (and then if you have time, come help me!).
Integrating the Theme:
I have a link to my forum in my global nav by creating an empty page with a slug that is the same as the directory name as where I have bbpress installed.
But I also load the wp-load.php file in my bb-config.php file
define(‘WP_BB’, true);
if ( !defined(‘DB_NAME’) ) {
require_once( dirname(__FILE__) . ‘/../wordpress/wp-config.php’);
}
$bb->wp_table_prefix = ‘wp_’; // your wordpress db prefix is
$bb->wp_home = ‘http://www.trashfilmorgy.com/wordpress <http://www.trashfilmorgy.com/wordpress> ‘;
$bb->wp_siteurl = ‘http://www.trashfilmorgy.com <http://www.trashfilmorgy.com/> ‘;
Then I went into my bbpress theme and changed every instance of bb_get_header() with get_header(), and bb_get_footer() with get_footer().
Since I want to have my wordpress sidebars show up in the forum, too, I also added get_sidebar() right above the call to get_footer().
I could also add other sidebars, too – the theme I use adds two columns below the main content area and uses the dynamic sidebar functionality to add them in to each page. I could see how adding other or more sidebars and going in to the templates could be really useful.
From : http://bbpress.org/forums/topic/how-do-ican-i-integrate-my-bbpress-forum-into-my-wordpress-layout
AND
to remove the ‘Log Out’ link: kakumei/logged-in.php – delete the function
if using bbPM: go into Admin area, copy function, uncheck box, and paste function in logged-in.php where you deleted the old function from
AND
to get the backslashes out of apostrophes:
1) open up /bb-includes/functions.bb-template.php
2) replace line 1074 with:
return stripslashes(apply_filters( ‘get_topic_title’, $topic->topic_title, $id ));
3) and line 1782:
return stripslashes(apply_filters( ‘get_post_text’, $bb_post->post_text, $bb_post->post_id ));