Directory / plugin
Lightweight Admin Toolbar Toggle
v2.0.3 · by aldibudimanputra
A plugin to toggle the WordPress admin bar and reclaim its space when hidden. Only visible to Administrators.
About this plugin
Lightweight Admin Toolbar Toggle allows Administrators to toggle the WordPress admin bar on/off from the frontend. The page reserves space while the toolbar is shown and reclaims it when hidden.
Features
- Toggle admin bar visibility with a floating button
- Visible toolbar reserves its measured height; hiding it reclaims the space
- Settings page to choose the toggle button position (8 positions around the screen edge)
- Show or hide the toggle on specific pages with include/exclude URL rules and * wildcards
- Optionally remember the toolbar open/closed state between pages (browser localStorage, no database writes)
- Optionally hide the front-end toolbar completely for non-administrator users
- Only visible to Administrators
- Compatible with popular page builders (Elementor, Divi, Astra, etc.)
- Stays out of the Elementor editor/preview and the Customizer preview
- Shields the toolbar from theme CSS resets that break its layout and icons
- Keyboard accessible toggle button (Enter/Space) with proper ARIA attributes
- Glassmorphism styled toggle button
- Translation ready
- Cleans up its settings on uninstall