When a WordPress banner disappears only on certain browsers or screen sizes, the problem may not have a single root cause. In one location-page issue, Freshy found three separate problems affecting the same visual system: a JavaScript error on every location page, closure controls split across two unrelated admin fields, and a CSS regression that appeared after a suspected Beaver Builder update.
The original failure could not be reproduced at first because the affected location had reopened and the closure flags were no longer active. Freshy recreated the closed-state behavior on staging, fixed the JavaScript error, unified the closure logic so both banners were controlled together, and added CSS to correct the layout regression. The changes were verified on staging, approved, and pushed to production.
Issue background
A WordPress site used location pages with two visual closure notices:
- A red alert bar above the site header.
- A larger banner below the hero section.
The expected behavior was for both elements to appear whenever a location was marked closed.
Instead, the reported behavior varied by browser and viewport. One banner was missing on desktop, and the notices could disappear entirely in Microsoft Edge.
By the time Freshy investigated, the originally affected location had reopened. That meant the exact production state from the initial report no longer existed and could not be reproduced directly.
Diagnosis
Freshy recreated the closed-location condition on staging and compared staging with production.
The team ruled out several suspected causes:
- Caching.
- Used-CSS optimization.
- The page-builder layout itself.
- The external location API.
- A code difference between staging and production.
The code was identical across environments.
During that review, Freshy found two real defects unrelated to the now-cleared production state.
1. A JavaScript error was firing on every location page.
The error occurred during window resize events and when the mobile menu was opened or closed. Even if it was not the only cause of the missing-banner report, it created an unnecessary failure point across all location pages.
2. The two closure banners were controlled by different admin fields.
The red bar above the header and the banner below the hero had drifted into separate controls in different admin screens. Marking a location closed only produced one of the two notices.
That explained why the visual state could become inconsistent even when the underlying closure status was correct.
When Freshy revisited the issue later, the team also identified a third problem.
3. New default styles appeared to be overriding the banner layout.
The developer traced the remaining display break to what appeared to be a previous Beaver Builder update that introduced new default styling. Those styles interfered with the existing banner layout and caused the notices to render incorrectly.
Resolution steps
The documented fix was:
- Recreate the closed-location state on staging. Because the original location had reopened, Freshy needed a controlled test case that still triggered the closure logic.
- Fix the location-page JavaScript error. The resize and mobile-menu error was removed so location pages no longer threw that exception during common interactions.
- Reconnect the two closure notices. The red header alert and below-hero banner were brought back under one consistent closed-location action instead of relying on unrelated fields.
- Correct the banner CSS regression. Custom CSS was added to override the new default styles that were breaking the banner presentation after the suspected Beaver Builder change.
- Test across viewport sizes. Freshy verified the closed-state layout at multiple screen sizes.
- Test in Chrome and Microsoft Edge. The staging review confirmed that both closure elements displayed correctly in the browsers involved in the original report.
- Obtain approval before launch. The repaired staging state was shared for review, with both the top red bar and the below-hero banner visible on a closed location.
- Deploy the approved changes to production. After approval, the updates were pushed live on September 15.
Final outcome
The location-banner system was restored and made more reliable.
Freshy fixed three separate issues:
- The JavaScript error affecting every location page.
- The split closure controls that allowed the two banners to fall out of sync.
- The CSS regression caused by new default styling from a suspected Beaver Builder update.
The completed state was verified on staging across screen sizes and in both Chrome and Microsoft Edge. The client approved the fixes, and Freshy deployed them to production.
The broader lesson is that a missing WordPress banner may be the visible symptom of multiple unrelated problems. Browser-specific display issues, JavaScript exceptions, CMS field drift, and page-builder CSS changes can all overlap. Reproducing the business state on staging and testing each layer independently is often more effective than looking for one single culprit.
If a WordPress banner, alert, or conditional page element disappears after a theme or builder update, contact Freshy. Our WordPress team can isolate whether the failure comes from JavaScript, CSS, page-builder defaults, or the underlying content controls and restore the intended behavior safely.