Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to get top Buddybar login link to another page than the standard wp-login page?

  • Profile photo of Erling
    Erling
    Participant

    @erling

    I’ve now tried a lot of things – and hope to see if somebody can help me here:
    Take a look at my site under construction; http://ishojvolley.dk/2 – everything’s working fine. I installed the plugin “Theme my login” and it’s working fine – except for the case that you use the “log in” button in the dark Buddypress top bar.
    How can I get this login button to direct people to my customised login-page instead of the standard wp-login.page?
    I found the piece of code in the buddypress/core/bp-core-buddybar.php as you can see below – but I can’t find out to change it?
    Any suggestions or other ideas?

    
    // **** "Log In" and "Sign Up" links (Visible when not logged in) ********
    function bp_adminbar_login_menu() {
    global $bp;
    
    if ( is_user_logged_in() )
    return false;
    
    echo '<li class="bp-login no-arrow"><a href="' . bp_get_root_domain() . '/wp-login.php?redirect_to=' . urlencode( bp_get_root_domain() ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
    
    // 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>';
    }
  • The topic ‘How to get top Buddybar login link to another page than the standard wp-login page?’ is closed to new replies.
Skip to toolbar