Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #189122


    Not sure if this is caused by the upgrade of wordpress to the latest version. Suddenly the WP admin bar shows on the top of the theme.

    How can I disable it for public visitors?

    thank you,

    This reply has been marked as private.


    Insert following code into the theme functions.php file to hide the admin bar for all users except the administrator

    /* Disable the WordPress Admin Bar for all but admins. */
    if (!current_user_can('manage_options')){

    Best regards,


    Thank you, Peter. Hope you are doing well! :)

    I need to hide the admin bar for only subscribers. How can that be achieved?

    And, why the site is showing admin bar even for visitors? This was not seen before.



    I thought this was related to the theme but it turned out to be a bug with one of the plugins. After installing the latest version of that plugin, the issue is gone.


Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘how to hide admin bar?’ is closed to new replies.