WordPress 7.0 Changed the Custom HTML Block. Now Your Code Can Disappear

WordPress block editor showing an empty, clear Custom HTML block with underlying code exposed next to it.

WordPress 7.0 changed the way the Custom HTML block works.

Before WordPress 7.0, you could see and edit your HTML directly inside the Custom HTML block in the Visual Editor. Now, the editor primarily shows the rendered result. To edit the actual code, you click the block and open the HTML editor in a modal.

WordPress added separate areas for HTML, CSS, and JavaScript, presenting the change as an improvement. Users who dislike popups, overlays, and extra steps disagree.

But there’s a more serious problem: What happens when the Custom HTML block doesn’t render anything at all?

You don’t see the block. Not fun abra-cadabra magic.

The Custom HTML Block Can Appear to Disappear

A Gutenberg bug report titled “Custom HTML block disappears” describes blocks that appear blank or disappear from the editing interface even though their HTML remains present and works on the live website.

Another Gutenberg issue concerns rendering problems involving structured data such as JSON-LD. Additional reports describe similar behavior with JavaScript-only snippets and other code that doesn’t produce a normal visual result.

The problem is straightforward: you can’t edit HTML that has disappeared from the editor.

The code may still be stored in the post, but that doesn’t help much if you can’t readily find the block containing it. A user might even assume the block is empty and delete it.

Saying that the HTML still exists doesn’t make the editing experience acceptable. The editor should make existing content identifiable and accessible.

Structured Data Shouldn’t Need a Generic HTML Block

JSON-LD provides information that search engines and other systems can use to understand a page. It isn’t ordinary visible content that needs to be displayed in the Visual Editor.

So why put it in a generic Custom HTML block and depend on the editor to handle it correctly?

UltimateWB provides a dedicated section for structured data and other head code, labeled “Add Code: In head section, right before end head tag,” on the Add/Edit pages of your website admin panel. Enter your structured data there, and UltimateWB places it in the proper location in the page. You don’t have to hide it in a generic content block.

The same approach extends to UltimateWB’s integrated WordPress Blog option. UltimateWB has modified and enhanced the blog to work with its website-building system, including built-in SEO and structured-data controls. It’s not simply a standard WordPress installation dropped into the website.

When an Update Makes Things Harder

WordPress 7.0’s Custom HTML changes illustrate a broader problem with website updates: a change can make an existing feature less convenient to use. And when the change introduces bugs, users are left dealing with the consequences.

Your website builder should help you manage your website, not make you wonder whether something that looks empty is actually full of code.


Related Articles

WordPress 7.1 Broke WP Rocket: The Fatal Error and the Plugin Problem

How One Plugin Update Broke a WordPress Site – And How You Can Avoid It

How to Fix: WordPress Error Class ‘C_NextGen_Settings’ Not Found

How WordPress Updates Broke This Website Design (And How UltimateWB Solved It)

The WordPress Update Cycle: Update, Test, Fix, Repeat

Looking for a WordPress Alternative That You Can Host Yourself?


Looking for an easy website builder that makes sense? Learn more about UltimateWB! We also offer web design packages if you would like your website designed and built for you.

Got a techy/website question? Whether it’s about UltimateWB or another website builder, web hosting, or other aspects of websites, just send in your question in the “Ask David!” form. We will email you when the answer is posted on the UltimateWB “Ask David!” section.

About the UltimateWB Team

This article was written and reviewed by the UltimateWB Development Team. With over 20 years of hands-on experience in full-stack web development, database optimization, and secure server administration (WHM/cPanel), we engineer UltimateWB with clean, built-in apps so you never have to deal with the performance-draining software bloat, security risks, or compatibility issues of third-party plugins. We build software designed from day one for maximum developer autonomy and lightning-fast performance.

This entry was posted in Compare Website Builders, Technology in the News and tagged , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *