Hello,
just place this short of code inside your activated themes functions.php
add_action('after_setup_theme', 'hide_admin_bar');
function hide_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
Thanks.
Hi this is for login users, isnt it.. I have a third party plugin, wp admin no show for it. What I mean is that, I see the wordpress bar even for non login users. It shouldnt be the case isnt it?
done it, but it doesnt work.
This code works for both logged in and non logged in users, it looks like this is customized admin bar added by theme, can you please let me know which theme you’re using ?
Thanks.
im already using sahifa theme..
for everyone who is helping me, thanks. but this is not abt registered users seeing the top admin bar. I have already installed wp admin no show and it wasnt like this earlier.
I realize it is the buddypress problem. After deactivating, i dont see any bar. After updating the buddypress, i realize I have this problem.
still have no idea how to resolve this issue.
i find that updating my buddypress automatically switch on the option for ‘Show the Toolbar for logged out users’
feeling so silly, thanks a lot guys.
Resolved.