Tagged: woocommerce
-
AuthorPosts
-
March 2, 2016 at 10:19 pm #592323
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
March 4, 2016 at 5:42 am #593098Hey Elsa,
Please try this instead:
add_filter('show_admin_bar', '__return_false');Regards,
RikardMarch 4, 2016 at 1:27 pm #593249Hi Rikard,
Thanks for your reply.
The top wp tool bar continues to be seen despite the code has been placed. :(March 4, 2016 at 5:35 pm #593397Hi!
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!
YigitMarch 4, 2016 at 7:25 pm #593471Hi 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
March 4, 2016 at 7:43 pm #593479Hi!
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!
YigitMarch 4, 2016 at 8:10 pm #593499Hi,
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
March 4, 2016 at 8:13 pm #593500(Email address hidden if logged out) is the correct
March 7, 2016 at 4:00 pm #594392Hey!
I am not able to login with provided credentials. Can you please check it once again?
Regards,
YigitMarch 7, 2016 at 4:12 pm #594400Hi
All the passwords are the same and they worked as I tested them right now.
Please check it again.
Thanks
March 7, 2016 at 4:17 pm #594401Hey!
No, it does not seem to be working. Can you please try de-activating all active plugins and check if that helps?
Regards,
YigitMarch 8, 2016 at 12:45 am #594693Hi 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
-
AuthorPosts
- The topic ‘Disable wp toolbar for all woocommerce users except admins.’ is closed to new replies.
