WordPress:始终在仪表板中展开菜单/删除最小化菜单图标
尝试稍微修改仪表板中的菜单。
我试图删除存在的所有切换选项,并找到某种方法强制菜单始终展开,这可能吗? (切换按钮:http://dl.dropbox.com/u/3618143/toggle.png )
还想删除最小化选项(它允许您只在菜单栏中显示图标)。我已经能够删除实际的图标,但功能仍然存在(不可见的链接)。所以删除实际图像不是问题,我已经设法删除它,但功能仍然存在。 (http://dl.dropbox.com/u/3618143/minimize.png)
提前致谢
Trying to modify the menu in the dashboard a bit.
I'm trying to remove the toggle option everywhere it's present, and find someway to force the menus to always be expanded, is this possible? (toggle button: http://dl.dropbox.com/u/3618143/toggle.png)
Also want to remove the minimize option (which lets you only show icons in the menu bar). I've been able to remove the actual icon, but the functionality is still there (invisible link). So removing the actual image is not the problem, I've managed to remove that, the functionality however is still there.
(http://dl.dropbox.com/u/3618143/minimize.png)
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有相同的需求:从 WP 管理菜单栏中删除“展开/折叠”功能,以消除混乱,但无需修改源文件。
我在 wp-admin/menu.php 中发现分隔符存储在索引 4,59,99 中。
这是添加到你的functions.php中的函数
Have the same need: remove the "un/fold" functionality from the WP admin menu bar, to remove clutter, but without tinkering with the source file.
I found out in wp-admin/menu.php that the separators are stored in index 4,59,99.
Here is the function to add to your functions.php
我不知道要编辑它的 php 文件到底在哪里。
但是您可以使用 Firefox 扩展中的 Firebug,找到 html 代码来呈现切换选项或分隔符,然后将其删除。
示例:对于分隔符html代码是这样的:
Wordpress使用cookie来存储菜单设置,您需要找到它并手动设置它。
I don't know where exactly the php file to edit it.
But you can use Firebug from Firefox extension, and find the html code to render the toggle option or separator then delete it.
Example: For separator html code is like this:
Wordpress use cookies to store menu setting, you need to find it and set it manually.