jQuery Plugin to Toggle (hide & show) WordPress Admin Bar

Simple jQuery plugin to toggle admin bar in WordPress from front end. It hides the wordpress admin bar, then a mouseleave() event triggers show button to appear. When clicked the admin bar comes back.

Plugin Overview

Plugin: toggle-wpadminbar
Author: Jarrod Whitley
Licence: MIT Licence
Published: April 4, 2019
Repository: Fork on GitHub
Dependencies: jQuery 1.3.1 or Latest version
File Type: zip archive (JavaScript, MD)
Package Size: 15.2 KB

How to Use Plugin to Toggle Admin Bar:

1. After downloading this plugin, log in to your WordPress site, then go to widget and add a custom HTML widget. Place the plugin’s source code between <script> and </script> in HTML widget. Save it, now you can toggle admin bar from front end.