Tagged: woocommerce
Hi,
I placed the code indicated in https://kriesi.at/support/topic/disable-toolbar-for-all-user/ on Enfold Child functions.php, however the bar continues to be seen.
I appreciate your help.
Kind regards
Hey Elsa,
Please try this instead:
add_filter('show_admin_bar', '__return_false');
Regards,
Rikard
Hi Rikard,
Thanks for your reply.
The top wp tool bar continues to be seen despite the code has been placed. :(
Hi!
I logged in and then went to your homepage and admin bar is not visible on my end. Can you please flush browser cache and refresh your page a few times?
Cheers!
Yigit
Hi Yigit,
Thank you for your support.
However the wp toolbar is only not visible to administrator!
I want the opposite, visible for admins and not visible for other users.
Regards
Hi!
I changed the code to following one
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
Please review your website now
Cheers!
Yigit
Hi,
Once again thank you for the support! :)
I followed your instructions in different browsers (opera, chrome and mozilla) and the bar is still there.
Can you confirm by yourself with the users credentials posted in private area?
Regards
(Email address hidden if logged out) is the correct
Hey!
I am not able to login with provided credentials. Can you please check it once again?
Regards,
Yigit
Hi
All the passwords are the same and they worked as I tested them right now.
Please check it again.
Thanks
Hey!
No, it does not seem to be working. Can you please try de-activating all active plugins and check if that helps?
Regards,
Yigit
Hi Yigit,,
Thanks for the reply.
Your option to disable plugins was correct, as .’Maintenance Plugin by fruitfulcode’ was preventing the disappearance of the bar.
You may close this ticket.
Have a good day.
Kind Regards