Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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

    #593098

    Hey Elsa,

    Please try this instead:

    add_filter('show_admin_bar', '__return_false');
    

    Regards,
    Rikard

    #593249

    Hi Rikard,

    Thanks for your reply.
    The top wp tool bar continues to be seen despite the code has been placed. :(

    #593397

    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

    #593471

    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

    #593479

    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

    #593499

    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

    #593500
    #594392

    Hey!

    I am not able to login with provided credentials. Can you please check it once again?

    Regards,
    Yigit

    #594400

    Hi

    All the passwords are the same and they worked as I tested them right now.

    Please check it again.

    Thanks

    #594401

    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

    #594693

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Disable wp toolbar for all woocommerce users except admins.’ is closed to new replies.