Hiding ‘Edit Page’ in Front End Admin bar
-
Hi
I would like to hide the ‘Edit page’ option in the front end admin bar from a custom user role ‘Admin’.
This option is not showing in the Admin Bar Front End settings, even if I “open the front end of the site in this browser in order for the plugin to discover the Admin Bar items that are currently not visible”.
Instead I have tried adding this to the Global options:
.ab-top-menu li#wp-admin-bar-edit
but this had no effect either (I have done it OK with other options here).
I tested the css by adding this to my style.css:
.ab-top-menu li#wp-admin-bar-edit {
display: none;
}and it did successfully delete the ‘Edit page’ entry in the admin bar (but obviously for Administrator too so that’s no good).
Can you give me any ideas how to achieve this please?
many thanks for your time
best wishes
- The topic ‘Hiding ‘Edit Page’ in Front End Admin bar’ is closed to new replies.