Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable Sidebar


  • kingisback
    Participant

    @kingisback

    hello guys, i installed bbpress on my site. but i have a problem with the theme. the theme for my site has 3 coloms, with 2 sidebars. Now is my question is there a way to make a change to the theme so the site remains with 3 colums, but bbpress get 2 colums, so 1 sidebar. this is a link to my site. http://bit.ly/1qZittE

Viewing 6 replies - 1 through 6 (of 6 total)

  • kingisback
    Participant

    @kingisback

    so i want the narrow sidebar on the left to dissapear form the forum page, but stays on the blog.


    Robin W
    Moderator

    @robin-w

    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


    docpariolo
    Participant

    @docpariolo

    hello,

    im having issues with this.

    ive taken page-template-full.php from wp-content/themes/Rox

    <?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(); ?>

    and copy pasted as bbpress.php in the same location, and it does nothing.

    i managed to have the index full width by making my own page with the forum shortcode and page set using full width layout. but once i click anywhere on the forum (go to a section, thread) the sidebar re appears.

    its driving me crazy.


    docpariolo
    Participant

    @docpariolo

    i went to bbPress WP Tweaks and chose bbpress.php but i just realized that i cant no longer go to wp-admin/options-general.php?page=bbpress.. lack of rights, it says. i know this is now off topic, but any ideas?


    Robin W
    Moderator

    @robin-w

    try logging out and in again


    Robin W
    Moderator

    @robin-w

    i managed to have the index full width by making my own page with the forum shortcode and page set using full width layout. but once i click anywhere on the forum (go to a section, thread) the sidebar re appears.

    That’s because it’s going back to the bbpress.php which isn’t working for you.

    try replacing

    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;
    

    with

    
    
    while( have_posts() ): the_post(); 
    
    	 the_content(); 
    
     endwhile; 
    
    

    in your bbpress.php file

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar