BuddyBoss Home – Web › Support Forums › General › BuddyPress (general issues) › BP Page Template
- This topic has 5 replies, 2 contibutors, and was last updated 9 years, 3 months ago by Dennis.
Question
July 25, 2015 at 5:28 am #43260@kahunaburgerIf 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
July 27, 2015 at 5:55 am #43351@
AnonymousHey @kahunaburger , take a look of buddypress.php inside the Boss parent theme.
Regards
July 28, 2015 at 5:26 am #43421@kahunaburgerI 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(); ?>
July 28, 2015 at 5:36 am #43423@
AnonymousThanks @kahunaburger
Regards
July 28, 2015 at 5:57 am #43425@kahunaburgerI think I posted that too soon. It fixed the div issues, but now it doesn’t show page or VC content.
July 28, 2015 at 7:15 am #43433@kahunaburgerThis 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?
- The question ‘BP Page Template’ is closed to new replies.