How to Take Control of Your WordPress Admin Bar
Recently we showed you how to disable the WordPress Admin Bar for all users except administrators. Although there are times when you will want to completely disable it the WordPress Admin Bar can also be very useful in certain situations. We are going to show you how you can have more control over when and how the Admin Bar is displayed
Installing this plugin is just like any other WordPress plugin.
Navigate to your WordPress “Plugins” page, inside of your WordPress dashboard, and follow these instructions:
The WordPress admin bar appears above your site if you are logged in to your WordPress dashboard. This is to allow for easy editing and site management directly from your site without having to jump back and forth between the front end (what visitors see of your site) and the backend (your WordPress dashboard). It provides some handy shortcuts to access parts of your WordPress installation without having to find them in the left-hand navigation menu.
Hide the Admin Bar in WordPress
WordPress automatically injects an admin toolbar at the top of the page for logged in users. This bar is really an annoyance to me because it slightly throws off my theme design and I never need the toolbar for anything. Here’s a snippet of code which will prevent that toolbar from displaying:
Removing WordPress Admin Bar from Cache
Under these conditions, your Origin will respond to the CDN’s request to cache content with an HTML file referencing the Admin Bar asset, and the CDN will override the no-cache header normally attached to this page by your Origin. The CDN will then proceed to request the Admin Bar asset from your Origin and place it into cache. Any user that requests the same page subsequently will receive the cached request from the logged in administrator.