gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add maintenance mode template

Open Drivingralle opened this issue 4 months ago • 7 comments

What problem does this address?

While WordPress is in maintenance mode the websites show a plain, unstyled message. Nowadays websites have complex styling and branding. This is not reflected on the current maintenance mode view.

What is your proposed solution?

Add a default template just like for 404 errors that can be styled by the theme and via the site editor. The template could also inherit styling from the general design system.

The template would be a great way to give websites a nice personality.

There are more voices liking the idea on the development blog: https://developer.wordpress.org/news/2026/07/on-brand-maintenance-mode-for-wordpress-block-themes/

Drivingralle avatar Jul 14 '26 10:07 Drivingralle

This'll be quite cool to have!

yashjawale avatar Jul 14 '26 13:07 yashjawale

great suggestion. 👍🏻

hagege avatar Jul 14 '26 13:07 hagege

I tried creating a draft implementation for this but noticed that when core maintenance mode is on, the plugins are never loaded nor the blocks are processed...

So either we can keep it separated from core maintenance mode which will make the implementation easier, but don't know how useful it'll be.

Or another way I can think of is to write the template markup & styles to maintenance.php (or another file provided core checks for gutenberg specific maintenance file) whenever the template is saved, allowing only specific whitelisted blocks in the template's editor. Although that feels a bit hacky & could lead to security concerns.

Perhaps there's a better way to go about this & I just don't know it yet...

yashjawale avatar Jul 20 '26 12:07 yashjawale

IMO, this is a ticket for https://core.trac.wordpress.org/. Once the new template proposal is accepted and accounted for in the template hierarchy, then we can focus on Site Editor support.

Mamaduka avatar Jul 28 '26 08:07 Mamaduka

I added a ticket to trac: https://core.trac.wordpress.org/ticket/65747#ticket

Drivingralle avatar Jul 28 '26 14:07 Drivingralle

Thanks for the idea, and for opening https://core.trac.wordpress.org/ticket/65747! As noted above, a maintenance template first has to be added to core's maintenance flow and template hierarchy, because plugins and blocks aren't loaded in maintenance mode. Let's continue on the Trac ticket, and open a new Gutenberg issue for Site Editor support once core accepts it.

youknowriad avatar Oct 06 '26 06:10 youknowriad

This is a great idea, another thing completely missing from the block theme / site editor workflow is a way to style the login in component for password protected pages/posts.

MichaelCampanella avatar Oct 07 '26 11:10 MichaelCampanella