I Like put login in the header and delete intro tap.

I Like put login in the header and delete intro tap. Is possible?

  • aristath

    Hello again @Antonio,

    Try this:
    Delete the contents of this file:
    bp-social/lib/templates/wp-template/top-header.php
    NOT the file, just its contents. :slight_smile:
    Then, open this file bp-social/lib/templates/wp-template/top-bar.php and add the following code on line 42:

    <form name="login-form" id="login-form" action="<?php echo site_url( 'wp-login.php' ) ?>" method="post">
    <h3><?php _e('Already a member?', TEMPLATE_DOMAIN); ?></h3>
    <input type="text" name="log" id="user_login" value="<?php _e( 'Username', TEMPLATE_DOMAIN ) ?>" onfocus="if (this.value == '<?php _e( 'Username', TEMPLATE_DOMAIN ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', TEMPLATE_DOMAIN ) ?>';}" />
    <input type="password" onblur="if (this.value == '') {this.value = 'password';}" onfocus="if (this.value == 'password') {this.value = '';}" value="password" class="input" id="user_pass" name="pwd"/>
    <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', TEMPLATE_DOMAIN ) ?>"/>
    
    <?php if($bp_existed == 'true') { ?>
    <?php if ( bp_get_signup_allowed() ) : ?>
    <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', TEMPLATE_DOMAIN ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />
    <?php endif; ?>
    <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain() ?>" />
    <?php } else { ?>
    <?php $check_active_signup = get_site_option( 'registration' ); if( $check_active_signup == 'none' ) { //if signup allowed ?>
    <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', TEMPLATE_DOMAIN ) ?>" onclick="location.href='<?php echo get_option('siteurl'); ?>/wp-login.php?action=register'" />
    <input type="hidden" name="redirect_to" value="<?php echo get_option('siteurl'); ?>" />
    <?php } ?>
    <?php } ?>
    
    <input type="hidden" name="testcookie" value="1" />
    
    <p class="small"><input type="checkbox" checked="checked" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', TEMPLATE_DOMAIN ) ?>" />
    <?php _e( 'Remember Me', TEMPLATE_DOMAIN ) ?></p>
    <?php do_action( 'bp_login_bar_logged_out' ) ?>
    </form>

    After you do that, tou'll be able to write some custom CSS to style it however you want.

    Cheers,
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.