Is there a code in functions.php that I can add to disable or hide “collapse menu” button?
The one that is on the left side of the admin menu in the dashboard. I’d need it for both admin, authors, contributors.
Is there a code in functions.php that I can add to disable or hide “collapse menu” button?
The one that is on the left side of the admin menu in the dashboard. I’d need it for both admin, authors, contributors.
You must be logged in to post a comment.
Here is a simple css display: none function, it just adds some css in the html, if there are more stuff that you want to hide i recommend you to add a new css-file with the function admin_enqueue_scripts
You can’t use
remove_menu()
for this one, since it is added like this in the admin menuin the
_wp_menu_output()
function in/wp-admin/menu-header.php
.So you could try instead:
Making the text something different might also be handy:
Or making the text completely blank but keeping the little arrow with hide/show functionality: