Skip to content

Support Forums: Restore the global footer background on 404 pages - #1228

Closed
obenland wants to merge 1 commit into
WordPress:trunkfrom
obenland:fix/support-404-footer-background
Closed

obenland wants to merge 1 commit into
WordPress:trunkfrom
obenland:fix/support-404-footer-background

Conversation

@obenland

Copy link
Copy Markdown
Member

On support 404 pages (e.g. https://de.wordpress.org/support/article/site-editor-patterns/), the global footer has no background, so its white text sits on a white page.

wporg-parent-2021's 404 styles paint body.error404 charcoal and unset the footer's background (body.error404 .wp-block-wporg-global-footer { background: unset }), relying on the body showing through. wporg-support-2024 overrides the 404 body to white, which removes the color the footer depended on.

This restores the footer's own background (--wp-global-header--background-color, set by the global footer block) on the support theme's 404 page. The rule has the same specificity as the parent's and loads after it.

Rebuilt build/style.css and build/style-rtl.css; the only compiled change is the new rule.

Testing

  1. Visit a nonexistent support URL, e.g. https://wordpress.org/support/does-not-exist/.
  2. Before: the footer is white with invisible text. After: the footer is charcoal, as on other pages.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings November 10, 2026 20:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

Core Committers: Use this line as a base for the props when committing in SVN:

Props obenland.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The parent theme unsets the footer background on 404s so its charcoal
body shows through, but the support theme paints the 404 body white,
leaving the white footer text on a white background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@obenland
obenland force-pushed the fix/support-404-footer-background branch from daf83e8 to c3e79f8 Compare November 10, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants