Archived topic
Quick question about admin bar
35 replies · Started by Michael on June 27, 2018
Aah yes, if you want you can try re-enabling the Page Headers, make sure all the old the page headers are fully deleted. If it still persists add a new page header to the page and see if this replaces it, then remove that.
I'm sure that's what I did try, but I will try that again.
Did all that, it still persists, did a force page reload as well.
I did notice in the headers section the following which doesn't look right?
The above from the Global Sections area of the Headers settings. There are no headers defined currently.
The dropdowns should look like that if you have no published Page headers. Go back to Page headers and check if theres anything in the Trash
Nothing in trash, page header still there. Going to put the CSS hack on for now.
Maybe try assigning a blank page header to the page. If not sounds like it could be a database issue.
Back to square one really, admin bar doing my nut in. Works fine for admin, users get nothing, plus a blank area where it should be when they scroll down. The screenshot you sent earlier, I checked with buddypress who say that's just showing the admin bar is already off, they don't turn it off. Thought I'd found the culprit, "Frontier Post" which can turn off the admin bar for different groups. After activating that the admin bar disappeared, so I thought I'd found it. Deactivating the plugin though still hides the admin bar.
The featured image problem still persists, but the CSS hack will have to suffice while I try fixing this admin bar issue. Why would it leave a blank area where it should be ? I thought it might be a display:none somewhere searched all plugins for something that would do that, only one I could see did it. Disabled that and the problem still there. Cleared cache each time, forced page reload. Also disabled the "View admin as" plugin no difference.
Hi Micheal, looks like you removed the user account, if you can resend that would be great and we can have another look.
Thanks David, I've just sent the details again.
Not found anything new, still seeing this in the foot of the document:
<div id="sitewide-notice" class="admin-bar-off"></div>
The only reference i have found to this is within a BuddyPress function file, so it looks like BB is outputing this, so i would assume it is BBP or a related plugin causing it?
Hi David,
Unfortunately not, the admin-bar-off is just a class BP uses when it detects the admin bar is disabled or not showing. Doesn't actually switch it off itself. I disabled BP completely and the problem persists.
OK, so have you any other plugins that control this or have you checked you config file?
I've been searching through them to see which ones control it, all the ones that did I deactivated and the problem still was there. Config file? do you mean wp-config? There's a plugin I use called Frontier Post, which controls the display of the admin bar for various user levels. Initially when I was activating the plugins one by one, the admin bar disappeared when I activated this plugin.
So I deactivated it, and the admin bar still wouldn't come back. I cleared the cache etc, but still wouldn't come back. So *shrugs shoulders*
hmmm... something has obviously written in the filter to disable it, as a workaround we could try and overwrite it with this:
if ( is_user_logged_in() ) {
add_filter( 'show_admin_bar', '__return_true' , 1000 );
}