• Resolved matheuscintra

    (@matheuscintra)


    Hi. I’ve installed buddypress and there is no sidebar for it. I’ve tried so hard (this should be a hobby) and didn’t make it happend. Can you tell me the easy way to do it?
    PS. Tried many many many plugins.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @matheuscintra which WP knowledge base theme are you referring to? BP uses the WP theme’s page.php file to render the components. So if the basic default layout of your theme is full-width, then all the BP pages would be rendered in full-width pages.

    If you want all the BP pages to be using a page with sidebar, create a new file named buddypress.php where you’ll add the HTML/PHP tags within the WP loop with the_title and the_content within http://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    Theme Author Swashata Ghosh

    (@swashata)

    Hi,

    As @mercime has pointed, since the page of the theme has a full-width template only, so the buddypress pages will have no sidebar. You can create a child theme or (as mentioned by @mercime) buddypress.php and put the following code inside.

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package iPanelThemes Knowledgebase
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area col-md-8">
    		<main id="main" class="site-main" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<?php
    				// If comments are open or we have at least one comment, load up the comment template
    				if ( comments_open() || '0' != get_comments_number() )
    					comments_template();
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I will push the next update to have sidebar pages by default and also a full-width template for creating simpler looking pages.

    Thread Starter matheuscintra

    (@matheuscintra)

    Thank you guys, but I think i’ll wait for the next update from swashata :). Can’t deal with those lines and files. Maybe I’ll crash the blog. :/

    I tried but something goes wrong. I’m also trying to use the excellent WP Knowledge Base with BuddyPress… Looks good news… Thanks

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

The topic ‘Buddypress install (sidebar)’ is closed to new replies.