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: January 18, 2024
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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...