Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bonsai-systems/bonsai_notoolbar_edit/releases/download/1.4.1/bonsai-notoolbar-edit.zipA minimal WordPress plugin that hides the default admin toolbar on the front end and replaces it with two fixed icon links: WP Dashboard and Edit Page.
Features
- Hides the standard WordPress admin bar (
show_admin_bar) on the front end only — wp-admin is untouched. - Renders a small fixed icon panel on every front-end page with:
- WP Dashboard — links to
wp-admin. - Edit Page — links straight to the editor for the current singular post/page. Hidden automatically when there's no editable post for the current view (archives, search results, 404s, etc.) or the user can't edit that specific post.
- Icons are hardcoded inline SVGs (not an icon font), so they render regardless of whether the active theme loads
dashiconson the front end. Both carry atitleand screen-reader-only text, so the link purpose is still available to assistive tech and on hover.
- WP Dashboard — links to
- Corner placement (top right / top left / bottom right / bottom left) is configurable under Settings → No Toolbar Edit. Defaults to top right.
- Link hover/focus colour is configurable on the same settings page (native colour picker) so it can match a client brand. Defaults to the Bonsai pink
#ee4367. - Restricted to users who can
edit_postsby default (filterable viabonsai_notoolbar_edit_capability). The settings page itself requiresmanage_optionsby default (filterable viabonsai_notoolbar_edit_settings_capability). - Two options (
bne_placement,bne_hover_color) stored in the database; removed on uninstall.
Requirements
- WordPress 6.0+
- PHP 8.0+
Usage
- Activate the plugin.
- Go to Settings → No Toolbar Edit and choose a corner placement (defaults to top right).
- Log in as a user who can edit content (author or above) and view the front end — the standard toolbar is gone, replaced by the two fixed icon links in the chosen corner.
- Logged-out visitors and users without
edit_postssee no change.
Filters
bonsai_notoolbar_edit_capability— capability required to hide the toolbar and see the fixed links. Defaults toedit_posts.bonsai_notoolbar_edit_settings_capability— capability required to access the settings page. Defaults tomanage_options.
// Restrict the front-end links to administrators only
add_filter( 'bonsai_notoolbar_edit_capability', function () {
return 'manage_options';
} );
Data Structure
Two options are stored:
bne_placement(string) — one oftop-right,top-left,bottom-right,bottom-left.bne_hover_color(string) — a hex colour (e.g.#ee4367) used for the icon links' hover/focus background.
Both are deleted when the plugin is uninstalled.
Updates
Ships with YahnisElsts/plugin-update-checker (installed via Composer, vendor/ committed) pointed at github.com/Bonsai-Systems/bonsai-notoolbar-edit. Sites with the plugin installed will see updates in Plugins in wp-admin, same as bonsai-code-injector and bonsai-maintenance.
To ship a new version:
- Bump the
Version:header inbonsai-notoolbar-edit.phpand add aCHANGELOG.mdentry. - Commit and push to
main. - Publish a GitHub Release tagged with the new version (release-assets mode is enabled, so attach a zip of the plugin folder — plain source-archive tags won't be picked up).
Sites check for updates every 6 hours ($checkPeriod argument to buildUpdateChecker()), or immediately if an admin clicks "Check again" on the Plugins screen.
Releases
7 releases. Each count is every asset in that release; expand a row for the breakdown.