Easily hide or show the front-end WordPress Admin Toolbar with a click of a button. The plugin adds a special button to the right side of the WordPress Admin Toolbar that only displays when you are outside the admin area of WordPress on the front-end. Clicking it will make the admin bar slide off the page to the top left corner, leaving only the hide/show button visible. Clicking the button again will restore the Toolbar to its original position. The shown/hidden position is remembered between page visits so that it can be kept hidden away until you are ready to bring it back.
There are no options or configuration. Just install and activate the plugin. When you exit the admin area, you will see the button to the far right of the Toolbar.
I actually like the WordPress Toolbar. It’s a convenient way to go back and forth from the admin area to the public website. However, when I’m doing design modifications for a theme, the Toolbar can be visually distracting. I wanted a quick way to hide the WordPress Toolbar when needed, but otherwise keep it around. I tried several plugins but they didn’t work as I wanted or didn’t even work at all in some cases. So I decided to build my own.
This plugin is on Github. Submit a pull request if you’d like to contribute.
- Upload entire
hide-wp-toolbardirectory to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Navigate to the public area of the site and click the right side button to hide/show the WP Toolbar
Are there any settings for this plugin?
Nope. No settings page is created. Just activate and start using. No configuration required.
The toolbar uses CSS to hide and since the toolbar always shows by default, there may be a brief moment where it appears before the CSS is fully loaded to hide it. This is standard behavior for CSS and applies to everything on the page.
Contributors & Developers
“Hide WP Toolbar” is open source software. The following people have contributed to this plugin.Cyfranwyr
“Hide WP Toolbar” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Hide WP Toolbar” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Updated plugin assets (icon/screenshots) for compatibility with plugin repo
- Cleaned up outdated CSS prefixes (Github issue #8)
- Removed font size CSS declaration to accept default font size (maintains icon position when rotating)
- Created plugin icon for plugin repository (Github issue #4)
- Created animated gif screenshot to see plugin behavior (Github issue #5)
- Updated readme details and version number after additional testing
- Fixed toolbar state not saving between page loads (Github issue #7)
- Stopped loading CSS/JS for non-logged in users that don’t have the toolbar (Github issue #6)
- Added proper text domain loading to support translations
- Removed dependency on WP Session Manager. Code included library was outdated and had a security issue. Now using WordPress transients to store state of the toolbar.
- Tested with WordPress 4.7.4
- Internationalized plugin for proper text translation handling
- Fixed: PHP Warning for creating default object from empty value (thanks benhuson!)
- Tested with WordPress 4.4.2
- Updated ReadMe regarding browser support and WP compatibility
- Use pretty dashicon from WordPress 3.8+ for button arrow (plugin now requires WordPress 3.8+)
- Modified placement of hide/show button for better compatibility with WordPress 3.8+
- Added functionality to remember shown/hidden position of toolbar between page loads
- Initial public release