Recently we showed you how to disable the WordPress Admin Bar for all users except administrators. Although there are times when you will want to completely disable it the WordPress Admin Bar can also be very useful in certain situations. We are going to show you how you can have more control over when and how the Admin Bar is displayed
最近,我们向您展示了如何为除管理员以外的所有用户禁用WordPress Admin Bar 。 尽管有时您想完全禁用它,但在某些情况下,WordPress Admin Bar也可能非常有用。 我们将向您展示如何更好地控制何时以及如何显示管理栏。
First thing you need to do is install and activate the WP Custom Admin Bar plugin. Upon activation, you will notice an extra tab in your settings menu called Custom Admin Bar: Settings » Custom Admin Bar.
您需要做的第一件事是安装并激活WP Custom Admin Bar插件。 激活后,您会在设置菜单中看到一个名为“自定义管理栏”的附加选项卡:“设置”»“自定义管理栏”。
On this page you can change which users will be able to see the admin bar and which won’t or you can just get rid of it all together. For more advanced users, at the bottom of the settings you also have the ability to add custom CSS styles in order to better control the admin bar’s appearance.
在此页面上,您可以更改哪些用户将能够看到管理栏,哪些用户将无法看到管理栏,或者您可以一起摆脱所有这些。 对于更高级的用户,在设置的底部,您还可以添加自定义CSS样式,以便更好地控制管理栏的外观。
Download WP Custom Admin Bar plugin.
下载WP Custom Admin Bar插件。
翻译自: https://www.wpbeginner.com/plugins/take-control-wordpress-admin-bar/