Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #43260
    @kahunaburger

    If you choose a different page for a BP component (Activity, Groups, etc.) the page gets wrapped in the entry-content div. This gives it extra padding and messes up some of the css.

    Is there a BP page template I could use to create a regular page template. Or would coping the default page template and remove the entry-content div do the trick?

    Answers

    #43351

    Anonymous
    @

    Hey @kahunaburger , take a look of buddypress.php inside the Boss parent theme.

    Regards

    #43421
    @kahunaburger

    I created a BP template using the Right Sidebar template. I just changed the “get_template_part( ‘content’, ‘page’ )” to “get_template_part( ‘content-buddypress’, ‘page’ );”. It seems to work. It could be worth adding for those wanting to use different BP pages than the default ones. 😉

    <?php
    /**
     * Template Name: BuddyPress Right Sidebar
     *
     * Description: Use this page template for a BuddyPress page with a right sidebar.
     *
     * @package WordPress
     * @subpackage Boss
     * @since Boss 1.0.0
     */
    get_header(); ?>
    
    <div class="page-right-sidebar">
    
    	<div id="primary" class="site-content">
    	
    		<div id="content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content-buddypress', 'page' ); ?>
    				<?php comments_template( '', true ); ?>
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    	
        <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>
    #43423

    Anonymous
    @

    Thanks @kahunaburger

    Regards

    #43425
    @kahunaburger

    I think I posted that too soon. It fixed the div issues, but now it doesn’t show page or VC content.

    #43433
    @kahunaburger

    This seems to be a BP issues. If you use the default BP pages the content you create in the page editor is displayed above the BP content. If you change the BP page to a different page BP strips out the content created in the page editor and only displays the BP content.

    Is there a way around this?

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘BP Page Template’ is closed to new replies.