Project

General

Profile

Actions

Bug #21823

closed

WP admin bar not appearing on ACERT site

Added by Boone Gorges 23 days ago. Updated 22 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Toolbar
Target version:
Start date:
2025-01-21
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Reported in https://redmine.gc.cuny.edu/issues/21797#note-22. When not authenticated, the purple Hunter bar appears out of the viewport. There are some custom styles:

#banner {
    height: 30px;
    background-color: #4E3A7D;
    margin-top: -45px;
    margin-left: -85px;
    max-width: 960px px;
}

When authenticated, this offsets the fact that the WP adminbar is 45px tall, and the ACERT site hides it with CSS:

#wpadminbar {
    display: none;
}

But for some reason, when viewing the site unauthenticated, the wpadminbar element doesn't even appear in the DOM, and the body doesn't have the 'admin-bar' class. It's not clear to me why this would be happening on Reclaim but not on the legacy GC site. Ray, could you have a look when you get a moment?

Actions

Also available in: Atom PDF