At least two ways – assuming you’re using child theme of bp-default:
1. in style.css only
body.registration #sidebar { display: none; }
body.registration div#content div.padder { margin-right: 0px; border-right: none; }
2. Template change plus one line in style.css
copy register.php from bp-default/registration/register.php to your child-theme-folder/registration/register.php
replace div class=”padder” with div class=”padderwide”
delete line [?php locate_template( array( ‘sidebar.php’ ), true ) ?]
in style.css add
.padderwide { padding: 20px; }
Hey mercime,
many thanks for your help, that is what I was looking for !
I just deleted the line you have mentioned from my register.php file and it worked like a charm.
Thanks again !
hi, i just follow this instruction using option 1 i put this code in my style.css
body.registration #sidebar { display: none; }
body.registration div#content div.padder { margin-right: 0px; border-right: none; }
and it worked, but how can i set the form to full page or make it center.
see here ; http://www.naijaping.com/register/
regards
`body.register div#content {
margin-right:0;
padding:0;
width:100%;
}
`
thanks hnla you are a star, it worked like a charm. one more question, can i use this code to remove sidebar from a page aswell. for example, “Terms of service”
Yes and no, you would need to change the body class token body.register is particular to the registration page so you would need to do something like:
`
body.page-id-1215 #content,
body.register div#content {
margin-right:0;
padding:0;
width:100%;
}
`
page-id-1215 is the only unique identifier of that page.
However this approach isn’t really the best one, it would be better to be using a onecolumn-page.php template that has the sidebar removed as is provided in the bp-default theme then you would select that page template for you terms&conditions page and when 1.3 hits you would do the same for the registration page.
thanks so much, the above approach worked, Am using a child theme created by me, but i copied all the files from bp-default theme and customised it. where can i get the onecolumn-page.php template? am not developer but its only help from people like that push me this far
regards
Taken from bp-default 1.3:
`
<?php
/*
* Template Name: One column, no sidebar
*
* A custom page template without sidebar.
*
* @package BuddyPress
* @subpackage BP_Default
* removed since notice hnla
*/
get_header() ?>
<div 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' ), '
‘, ‘
‘); ?>
`
Not sure if this is practical as it is from 1.3 but the principle is sound. You would need to ensure your custom markup – if any – was replicated in this page and change the top template notice to 1..28 this would then give you a selectable template for when you create any pages that don’t require sidebars. When 1.3 lands live you will also be able to use templates for regular BP pages such as registration as 1.3 uses pages for the main components.
How do i delete ‘reply me’ section from one page, no column template ?
Please do not resurrect such old posts, it’s not proper form, they are there as archive records if they don’t help then start a new topic.