• Hi

    In my website, I would like to remove the dasboard access and have tried the plugin “Remove dashboard access”. The problem is it remove the entire access to the dashboard.

    What I want is, I want to remove the left side content of the dashboard and keep only the right side one (Howdy user name, edit my profile etc).

    Please help.

Viewing 1 replies (of 1 total)
  • To clarify, you want to remove the toolbar access? I.E. access to posts, pages, plugins, etc. Do you want to do this for ALL user roles, or just everyone except the admin?

    For that, you can try using the following code in your (child) theme’s functions.php.

    /* Disable the WordPress Admin Bar for all but admins. */
    if (!current_user_can(‘administrator’)):
    show_admin_bar(false);
    endif;

    Or, you might also want to try this plugin instead: https://www.ads-software.com/plugins/remove-admin-bar-for-client/

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the access’ is closed to new replies.