隐藏wordpress后台
If you manage a multi-author WordPress blog or WordPress sites for clients, then you may have wondered if it was possible to clean up the WordPress admin area for your users? There are lots of things in the WordPress admin area that your users don’t need to see or use. In this article, we will show you how to hide unnecessary items from WordPress admin area.
如果您为客户管理多作者WordPress博客或WordPress网站,那么您可能想知道是否有可能为您的用户清理WordPress 管理区域 ? WordPress管理区域中的许多内容您的用户不需要查看或使用。 在本文中,我们将向您展示如何在WordPress管理区域中隐藏不必要的项目。
Previously we showed you how to hide menu items from WordPress admin sidebar. However, there are many other aspects of the admin area that you may want to change. Like dashboard widgets, admin bar, post edit area, etc. You may also want to deactivate things based on user roles creating different admin interfaces for users with different roles and capabilities on your site. This is when Adminimize comes in.
之前,我们向您展示了如何从WordPress管理员侧边栏中隐藏菜单项 。 但是,您可能需要更改管理区域的许多其他方面。 如仪表板小部件, 管理栏 ,后编辑区域等。您可能还想根据用户角色来取消激活,从而为站点上具有不同角色和功能的用户创建不同的管理界面。 这是“管理”出现的时间。
影片教学 (Video Tutorial)
If you don’t like the video or need more instructions, then continue reading.
如果您不喜欢该视频或需要更多说明,请继续阅读。
First thing you need to do is install and activate the Adminimize plugin. Upon activation, visit Setting » Adminimize to configure the plugin settings.
您需要做的第一件事是安装并激活Adminimize插件。 激活后,访问设置»管理以配置插件设置。
The settings page has a Mini Menu that divides the settings page into different sections for different WordPress admin screens. Clicking on each link in the mini menu will take you to its options. For each section, you will see a number of items that you can deactivate or modify. You will also notice that each option has check boxes for all WordPress user roles.
设置页面有一个迷你菜单,可将设置页面分为不同的部分,以用于不同的WordPress管理屏幕。 单击迷你菜单中的每个链接将带您进入其选项。 对于每个部分,您都会看到许多可以停用或修改的项目。 您还将注意到,每个选项都有用于所有WordPress用户角色的复选框。
Once you have checked to deactivate a few items, you need to click on the ‘Update Options »’ button below any section to store your changes.
选中禁用一些项目后,需要单击任何部分下方的“更新选项»”按钮来存储您的更改。
Please note that your changes will not be visible on the plugin’s settings page. To see your changes in action, you will need to open any other admin page in a new browser tab.
请注意, 您所做的更改将在插件的“设置”页面上不可见 。 要查看您所做的更改,您需要在新的浏览器标签中打开任何其他管理页面。
We will show you each item in the Mini Menu and how to change their settings.
我们将向您展示“迷你菜单”中的每个项目以及如何更改其设置。
管理栏选项 (Admin Bar Options)
After the plugin’s about section, the first option in the mini menu is the Admin Bar Options. The admin bar is the WordPress toolbar that appears on the top of each screen when you are logged in to your WordPress site.
在插件的“关于”部分之后,迷你菜单中的第一个选项是“管理栏选项”。 管理栏是WordPress工具栏,当您登录WordPress网站时,该工具栏将显示在每个屏幕的顶部。
All the items in the admin bar can be turned off or on for each user role.
可以针对每个用户角色关闭或打开管理栏中的所有项目。
The first option allow you to hide the user menu and its subitems that appear on the top right corner of the admin bar. After that you will notice that each main menu is highlighted with the pink color. Deactivating a main menu will also hide all its sub-menus. For example, deactivating WordPress logo will also hide all the links in its sub menu.
第一个选项可让您隐藏显示在管理栏右上角的用户菜单及其子项。 之后,您会注意到每个主菜单都以粉红色突出显示。 停用主菜单也会隐藏其所有子菜单。 例如,停用WordPress徽标还将隐藏其子菜单中的所有链接。
The admin bar shows your site’s name with a drop down menu containing the link to visit your site’s front-end. Checking the site name will also hide the link to visit the site’s front-end. Among other options, you will see checkboxes to hide comments icon and +New icon.
管理栏通过下拉菜单显示您的网站名称,该下拉菜单包含访问您网站前端的链接。 检查站点名称还将隐藏该链接以访问站点的前端。 在其他选项中,您将看到复选框以隐藏评论图标和+ New图标。
Remember that you can also hide a sub-item. For example, if you want to keep the +New menu in the admin bar, but you want to hide pages from it, then just check the pages and deactivate it for the selective user roles.
请记住,您也可以隐藏子项目。 例如,如果您想将+ New菜单保留在管理栏中,但要从中隐藏页面,则只需检查页面并为选择性用户角色停用它即可。
If you only wanted to switch off admin bar, then perhaps you should take a look at how to disable WordPress admin bar for all users.
如果您只想关闭管理栏,那么也许您应该看看如何为所有用户禁用WordPress管理栏 。
后端选项 (Backend Options)
Not all sections in the adminimize settings screen will have checkboxes. The backend options section has a slightly different look. This section allows you to set global options for all users in the admin area.
并非“管理设置”屏幕中的所有部分都具有复选框。 后端选项部分的外观略有不同。 本部分允许您在管理区域中为所有用户设置全局选项。
The first option here is to configure the user info menu. This is the menu that appears on top right corner of the admin screen with a user avatar. You can choose to hide it, show user and log out, or show the logout link only. The next option is to choose where to redirect users when they click on the user info link. In order to change this, you need to first change the user info menu to anything other that default or hide. After that, you need to click on the update options button below to store your changes. Now you can change the redirection option and set it to front page of your site.
这里的第一个选项是配置用户信息菜单。 这是显示在管理屏幕右上角的菜单,带有用户头像。 您可以选择隐藏它,显示用户并注销,或仅显示注销链接。 下一个选项是选择当用户单击用户信息链接时将其重定向到的位置。 为了更改此设置,您需要首先将用户信息菜单更改为默认或隐藏的其他内容。 之后,您需要单击下面的更新选项按钮以存储您的更改。 现在,您可以更改重定向选项并将其设置为站点的首页。
Next option is for footer which allows you to hide the footer from all admin pages.
页脚的下一个选项是允许您从所有管理页面隐藏页脚的页脚。
By default when you are working on a post, the timestamp option is hidden behind an edit link next to the publish information. In order to schedule a post, you need to click on the edit link to show the timestamp.
默认情况下,当您处理帖子时,时间戳选项隐藏在发布信息旁边的编辑链接后面。 为了安排发布 ,您需要点击编辑链接以显示时间戳。
In the backend options section, you can select activate next to the timestamp option to make it visible all the time.
在后端选项部分,您可以选择时间戳选项旁边的激活以使其始终可见。
Similarly, by default WordPress hides some of your categories in the categories meta box on the post edit screen. You can change this behavior by choosing activate next to the Category Height option. Doing so the category meta box will adjust the height to display all your categories.
类似地,默认情况下,WordPress在帖子编辑屏幕上的类别meta框中隐藏您的某些类别。 您可以通过选择“类别高度”选项旁边的“激活”来更改此行为。 这样做类别类别框将调整高度以显示所有类别。
The advice in footer option allows you to put your own text in the footer area of all WordPress admin pages. This can be used for branding, adding shortcuts, or anything you want.
页脚中的建议选项允许您将自己的文本放在所有WordPress管理页面的页脚区域中。 这可以用于品牌,添加快捷方式或任何您想要的东西。
The last option in the Backend Options is to set a redirection for Dashboard. To use this you need to deactivate the dashboard first. We will show you how to do that later in this article.
后端选项中的最后一个选项是为仪表板设置重定向。 要使用此功能,您需要先停用仪表板。 我们将在本文后面的部分中向您展示如何执行此操作。
全局选项 (Global Options)
The global options section allows you to activate or deactivate particular settings for specified user roles. The first option here is to show or hide the admin bar. Unlike the admin bar option section which allows you to change the menus in the admin bar, this checkbox will turn off the admin bar altogether for the selected user roles.
全局选项部分允许您激活或停用指定用户角色的特定设置。 这里的第一个选项是显示或隐藏管理栏。 与允许您更改管理栏中菜单的管理栏选项部分不同,此复选框将针对所选用户角色完全关闭管理栏。
The Favorites section is no longer available in WordPress. The next few options are screen meta, screen options, and contextual help. This will deactivate the help and screen options section from WordPress admin pages.
“收藏夹”部分在WordPress中不再可用。 接下来的几个选项是屏幕元,屏幕选项和上下文帮助。 这将停用WordPress管理页面中的“帮助和屏幕选项”部分。
Users on your WordPress site can go to their profiles and change the admin color scheme. To remove this feature, you can deactivate admin color scheme for selected user roles.
WordPress网站上的用户可以转到其个人资料并更改管理员配色方案。 要删除此功能,您可以为选定的用户角色停用管理配色方案。
隐藏WordPress仪表板小部件 (Hiding WordPress Dashboard Widgets)
To change the dashboard widgets, first you need to visit the Dashboard. This will allow Adminimize to load your Dashboard widgets. After that, you need to go back to Settings » Adminimize and click Dashboard Options link from the mini menu or scroll down to Dashboard Options section. You can hide activity widget, QuickPress widget, WordPress News widget, and at a glance widget.
要更改仪表板小部件,首先您需要访问仪表板。 这将允许Adminimize加载您的仪表板小部件。 之后,您需要返回“设置”»“管理” ,然后从迷你菜单中单击“ 仪表板选项”链接,或向下滚动至“ 仪表板选项”部分。 您可以隐藏活动小部件,QuickPress小部件,WordPress新闻小部件以及一目了然的小部件。
If you only wanted to switch off dashboard widgets, then take a look at how to remove WordPress dashboard widgets.
如果您只想关闭仪表板小部件,请查看如何删除WordPress仪表板小部件 。
菜单选项 (Menu Options)
Menu options allows you to show or hide items from your WordPress menu bar.
菜单选项可让您显示或隐藏WordPress菜单栏中的项目。
Adminimize will show you an option for each menu item and all its sub-menu items. It will also show you menus added by your WordPress plugins and themes. You can check menus you want to deactivate for different user roles on your WordPress site.
“管理”将为您显示每个菜单项及其所有子菜单项的选项。 它还将显示由WordPress插件和主题添加的菜单。 您可以在WordPress网站上选中要停用的菜单,以用于不同的用户角色。
写入选项–帖子,页面和帖子类型 (Write Options – Post, Page, and Post Types)
You can also modify the meta boxes and write panels in the WordPress post and page edit area. To do so, click on Write Options – Post or Write Options – Page from the mini menu on Adminimize settings. You can hide almost any item that appears on the write screen.
您还可以在WordPress帖子和页面编辑区域中修改元框并编写面板。 为此,请从“管理设置”迷你菜单中单击“ 写选项–张贴或写选项–页面 ”。 您几乎可以隐藏写入屏幕上显示的所有项目。
The first few options allow you to show / hide different meta boxes and sections from your post edit screen. It also allows you to hide items from Quick Edit area.
前几个选项使您可以在帖子编辑屏幕中显示/隐藏不同的meta框和部分。 它还允许您隐藏“快速编辑”区域中的项目。
小部件选项 (Widget Options)
The next section in the Adminimize settings is Widget Options. This section allows you to show and hide items from the Widgets screen. You can show / hide widget ready areas and sidebars. You can also hide inactive widgets section along with hiding individual widgets from the list of available widgets.
“管理”设置的下一部分是“窗口小部件选项”。 本部分允许您显示和隐藏“小部件”屏幕中的项目。 您可以显示/隐藏窗口小部件准备就绪的区域和侧栏 。 您还可以隐藏不活动的小部件部分,以及从可用小部件列表中隐藏单个小部件。
WP Nav菜单选项 (WP Nav Menu Options)
This section allows you to control Appearance » Menus screen. You can show / hide categories, pages, or custom link section from the menu screen. At the time of writing this article, the option to hide add new menu and the option to hide theme locations was not working. Hopefully in the next update this issue will be resolved.
通过此部分可以控制外观»菜单屏幕。 您可以从菜单屏幕显示/隐藏类别,页面或自定义链接部分。 在撰写本文时,隐藏添加新菜单的选项和隐藏主题位置的选项不起作用。 希望在下次更新中可以解决此问题。
设定主题 (Set Theme)
Set theme option allows you to set a WordPress admin area color scheme for your users. Click on the load user data button and the plugin will load all your users.
设置主题选项可让您为用户设置WordPress管理区域配色方案。 单击加载用户数据按钮,该插件将加载所有用户。
Once the plugin has loaded all your users, select a user and then choose a theme from them by clicking on the default theme dropdown menu. You can also select all your users and choose a default color scheme for them.
插件加载完所有用户后,选择一个用户,然后通过单击默认主题下拉菜单从其中选择一个主题。 您还可以选择所有用户,并为他们选择默认的配色方案。
If you only wanted to set a default scheme for your users, then take a look at how to set a default admin color scheme for new users in WordPress.
如果您只想为用户设置默认方案,那么请看一下如何为WordPress中的新用户设置默认管理员配色方案 。
导入/导出管理设置 (Import / Export Adminimize Settings)
Adminimize allows you to easily import and export your plugin settings. Using this feature, you can apply the same settings on multiple WordPress sites. To export your settings simply click on the export button and download the .seq file containing the plugin settings.
Adminimize使您可以轻松导入和导出插件设置。 使用此功能,您可以在多个WordPress网站上应用相同的设置。 要导出设置,只需单击导出按钮,然后下载包含插件设置的.seq文件。
To import settings from an Adminimize export file simply click on Choose File button under the Import. Select the .seq file you want to import and then click on Upload file and import button.
要从“管理”导出文件导入设置,只需单击“导入”下的“选择文件”按钮。 选择您要导入的.seq文件,然后单击“ 上传文件并导入”按钮。
卸载选项 (Deinstall Options)
In case you want to deactivate and uninstall the plugin, this option allows you to safely disable all plugin settings. Simply deleting the plugin may not delete all the options stored in your database. To make sure that you get it all cleaned up, check the box next to Delete Options button and then click on Delete Options.
如果您要停用并卸载插件,此选项可让您安全地禁用所有插件设置。 仅仅删除插件可能不会删除数据库中存储的所有选项。 为了确保一切都已清除,请选中“ 删除选项”按钮旁边的框,然后单击“ 删除选项” 。
We hope this article helped you hide unnecessary items from WordPress admin area and create your own clean and customized admin panels.
我们希望本文能帮助您从WordPress管理区域中隐藏不必要的项目,并创建自己的干净和自定义管理面板。
If you liked this article, then subscribe to our YouTube Channel for WordPress video tutorials. You can also join us on Twitter and Google+.
如果您喜欢这篇文章,请订阅我们的YouTube频道的WordPress视频教程。 您也可以通过Twitter和Google+加入我们。
隐藏wordpress后台