I am not able to hide the "Edit Page - YellowPencil" button in the page/post editor. I've tried several ways and am stumped. It shows for all users as well. Can you point me in the right direction?
Why do you have to do it this way? That's because regular CSS is applied to frontend of your website and not the backend. And in order to hide that button we need to add some backend CSS to disable it.
I a trying to do the same, but I want to restrict this to certain users other than the administrator. When I implement the solution below it applies to all users.
I am not able to hide the "Edit Page - YellowPencil" button in the page/post editor. I've tried several ways and am stumped. It shows for all users as well. Can you point me in the right direction?
Hi,
You want to hide it for specific user role or generally for all users?
Best regards,
WaspThemes team
And don't forget to rate our plugin, it means a lot to us!
Hi David,
I'd like to hide it for all users, assuming that's the easiest solution.
Okay. So here are the required steps.
1) Install this plugin - https://wordpress.org/plugins/add-admin-css/
2) Go to WP Dashboard > Appearance > Admin CSS
3) Add this CSS there
a.yp-btn {
display: none;
}
4) That's it!
Why do you have to do it this way? That's because regular CSS is applied to frontend of your website and not the backend. And in order to hide that button we need to add some backend CSS to disable it.
Best regards,
WaspThemes team
And don't forget to rate our plugin, it means a lot to us!
I a trying to do the same, but I want to restrict this to certain users other than the administrator. When I implement the solution below it applies to all users.
Try using Adminimize plugin. That will restrict what different user roles see.
Best regards,
WaspThemes team
And don't forget to rate our plugin, it means a lot to us!
Adminiimize can only restrict the WP Daashboard Menu items. There are no options to hide content inside an administrative page.
Hi There,
you can hide it by add the following CSS to admin page.
you can hide it by add the following CSS to admin page.
.wyp-btn{display:none !important;}