BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › logging button has disappeared
- This topic has 4 replies, 2 contibutors, and was last updated 8 years, 9 months ago by Anonymous.
Question
February 18, 2016 at 3:25 pm #59628@franceHello 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’);
23
function remove_admin_bar() {
4
if (!current_user_can(‘administrator’) && !is_admin()) {
5
show_admin_bar(false);
6
}
7
}Answers
February 22, 2016 at 10:13 am #59906@franceHello,
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
February 23, 2016 at 11:49 pm #60035@
AnonymousHi @france, It is fixed now, admin bar option was disabled in the buddypress setting.
Regards
February 24, 2016 at 10:30 am #60107@franceOh 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
FranceFebruary 24, 2016 at 11:26 am #60112@
Anonymous🙂
- The question ‘logging button has disappeared’ is closed to new replies.