BuddyBoss Home – Web Support Forums Solutions Social Learner Top Right Login Button

Viewing 7 posts - 1 through 7 (of 7 total)
  • Question

    #47391
    @communityartistry

    Varun,

    Thank you so much for your help so far you have truly been very helpful and I am so happy with the support you have given me.

    I would like to incorporate the login button on the top right corner of the site (where the buddypress admin menu displays). How do I add in a button here?

    Thanks,
    Ajay

    Answers

    #47465

    Anonymous
    @

    Hi @communityartistry,
    Login button comes by default with Social Learner for logout users.
    Seems your header.php is modified to hide login button.
    Regards
    Varun Dubey

    #47481
    @communityartistry

    Varun, the following is the code from the header.php. Should I change hide_loggedout_adminbar to true? Looking at this, it looks like the login button should be displaying. Perhaps I am reading the code wrong. Let me know, thanks!

     <!-- Register/Login links for logged out users -->
    <?php if ( !is_user_logged_in() && buddyboss_is_bp_active() && !bp_hide_loggedout_adminbar( false ) ) : ?>
    
                                <?php if ( buddyboss_is_bp_active() && bp_get_signup_allowed() ) : ?>
                                    <a href="<?php echo bp_get_signup_page(); ?>" class="register screen-reader-shortcut"><?php _e( 'Register', 'social-learner' ); ?></a>
                                <?php endif; ?>
    
                                <a href="<?php echo wp_login_url(); ?>" class="login"><?php _e( 'Login', 'social-learner' ); ?></a>
    
                            <?php endif; ?>
    
                             
    
                        <?php endif; ?> 
    #47533

    Anonymous
    @

    Hi @communityartistry, please check your BuddyPress setting and enable admin bar for logout users

    Regards
    Varun Dubey

    #47652
    @communityartistry

    Varun,

    I am not sure where to look. In what file and which code line do I need to adjust to enable the admin bar for logout users? Thanks,

    Ajay

    #47661
    @communityartistry

    Nevermind ! Was able to fix 🙂 Thank you Varun !!! 🙂

    #47673

    Anonymous
    @

    🙂 Glad you found it, I will close this topic, feel free to create new topics for any further queries.
    Regards

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘Top Right Login Button’ is closed to new replies.