BuddyBoss Home – Web Support Forums Themes Boss. theme logging button has disappeared

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

    #59628
    @france

    Hello again,

    The login button in the top-right corner has disappeared.

    I was trying a code (in the «functions.php» file) so I could remove the admin bar for non-administrators only… So I added the short-code you will find below, and since I did not like it and I decided to get back to how it was, I have put the original and intact «functions.php» file back to its place…

    But the login button has disappeared (for the non administrators) in this period of time and is not getting back… help !!!

    I do not understand, I checked my «functions.php» and the code I tried is not there any more, it should be back to normal…..

    trial code (now retrieved) :
    ____________________________________________________
    1
    add_action(‘after_setup_theme’, ‘remove_admin_bar’);
    2

    3
    function remove_admin_bar() {
    4
    if (!current_user_can(‘administrator’) && !is_admin()) {
    5
    show_admin_bar(false);
    6
    }
    7
    }

    Answers

    #59906
    @france

    Hello,
    If you could get back to me on this «login» problem, I would really appreciate.
    We are stuck with the website because of this.

    I will send the necessary access in an email in a few minutes.

    Thanks,

    France

    #60035

    Anonymous
    @

    Hi @france, It is fixed now, admin bar option was disabled in the buddypress setting.

    Regards

    #60107
    @france

    Oh wow ! Thanks.
    I did not know this was affecting the login buttons (I tought it was just the black wp admin bar). And I did not remember I had changed this setting in my many trials.
    Thank you so much
    France

    #60112

    Anonymous
    @

    🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The question ‘logging button has disappeared’ is closed to new replies.