How to disable wordpress Admin Bar ?

Sometimes, we want to make sure default wordpress admin bar ( as it looks below ) is not visible to everyone but have users register to our blog.

Admin Bar

To, disable this, there are multiple ways, but the most easiest way we could identify is to disable this using CSS, identify a code some like below,

#wpadminbar{direction:ltr;color:#ccc;font:400 13px/32px “Open Sans”,sans-serif;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#23282d;}

from wp-includes/css/admin-bar.min.css of your wordpress code, and add following code to end of this, like as below,

#wpadminbar{direction:ltr;color:#ccc;font:400 13px/32px “Open Sans”,sans-serif;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#23282d;display:none;}

Now, save and upload to your server and observe that wordpress admin bar is gone 🙂

 

Android Android Build system Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Content Management System - CMS Core Kernel C Programs Development Environment Setup Errors & Failures git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense Moodle NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded
Tags:

Leave a Reply / Ask Question