Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How Do I Edit & Add a Full-Width Page option on default BP theme?


pcwriter
Participant

@pcwriter

Create a new file called page-full.php (or any other name you prefer). Then paste the following code in that file. The only differences between this and the “regular” page.php is that the call to the sidebar has been removed, and “div class=padder” has been changed to “div class=full-padder”.

`<?php
/*
Template Name: Full-Width Page
*/
?>

<div class="post" id="post-“>

<?php the_content( __( '

Read the rest of this page ?

‘, ‘buddypress’ ) ); ?>

__( ‘

Pages: ‘, ‘buddypress’ ), ‘after’ => ‘

‘, ‘next_or_number’ => ‘number’)); ?>
<?php edit_post_link( __( 'Edit this entry.', 'buddypress' ), '

‘, ‘

‘); ?>


`

Then add this to your child-theme’s style.css file:

`div#content .full-padder {margin:0;padding:19px;}`

When you create a page in WordPress, you’ll see your new template is available in the “Page Attributes” Template dropdown.

Skip to toolbar