Page 1 of 1

BuddyPress Admin Bar Signup Redirect to /Register

PostPosted: January 16th, 2012, 5:11 pm
by AMEEKER
The BuddyPress admin bar for logged out users shows a signup link, and that link directs to /register. I'd like it to direct to the page I've designated within S2Member as my page for members to join.

There is an option within BuddyPress to assign its pages to your own WP pages (example: Register to "my grandma's cat" page...) but when I did that, it didn't change the Signup link and ALSO changed the page I have designated as my page for members to join to direct to /register.

Does this make sense at all? What I'd LIKE to do is completely remove the Signup link in the BuddyPress admin bar (and I can do that my just yanking out this code below) but then I'm sure in subsequent BP upgrades, it will return.

Is there something I've missed along the way that will direct that Signup link to my registration page, or another way I can remove that action which displays the signup link that won't also be removed with every upgrade?


// Show "Sign Up" link if user registrations are allowed
if ( bp_get_signup_allowed() )
echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';

Re: BuddyPress Admin Bar Signup Redirect to /Register

PostPosted: January 19th, 2012, 10:48 pm
by Raam Dev
You should be able to hide that menu item via CSS instead of modifying the code itself. Adding the following line to your theme's style.css file (or whatever CSS file is loaded for that page) should do the trick:

Code: Select all
li.bp-signup { display:none; }