Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: What files are needed in a custom BuddyPress Home theme?


Burt Adsit
Participant

@burtadsit

Make sure you are starting your customization with the latest trunk brad85. I don’t know what ver of bp’s home theme you are customizing. In the latest trunk there are two functions that control what goes on in the login/signup buttons. The bp home theme header.php file calls <?php bp_login_bar() ?>. In that fn it calls bp_signup_page() which you see below:

function bp_has_custom_signup_page() {

if ( file_exists( WP_CONTENT_DIR . ‘/themes/’ . get_blog_option( 1, ‘template’) . ‘/register.php’) )

return true;

return false;

}

function bp_signup_page( $echo = true ) {

global $bp;

if ( bp_has_custom_signup_page() ) {

if ( $echo )

echo $bp->root_domain . ‘/’ . REGISTER_SLUG;

else

return $bp->root_domain . ‘/’ . REGISTER_SLUG;

} else {

if ( $echo )

echo $bp->root_domain . ‘/wp-signup.php’;

else

return $bp->root_domain . ‘/wp-signup.php’;

}

}

Unless you don’t have the register.php file in /themes/<your theme>, or you’ve somehow altered the header calling sequence so this code doesn’t run, then it should work fine. The signup button should not have anything to do with wp-login.php

Skip to toolbar