• Most of the posts on my site consist of two blocks: an image and then some licensing and background information below it. The licensing and background information usually take the form of a “Custom HTML” block in the block editor. I am using WordPress version 5.7.2 with a Syntax theme. I am using Ubuntu as my OS.

    As of today, I can write this Custom HTML block just fine, but if I ever re-open the post in the editor after publication, the Custom HTML block is crushed. I mean, the code just vanishes entirely, leaving a blank HTML block at the bottom of the page. (I actually do this a lot, for example to get a specimen HTML block that I can just add, rather than having to re-write the whole bock on new posts, or to change a post listed as “sticky” to not sticky.)

    Needless to say, I find this behavior bizarre and frustrating. (I don’t recall a thing like this happening in the eight or so years I was happily using WordPress before some genius decided to redo a perfectly functional CMS by introducing “Blocks.”) How can the issue be fixed?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could return to using the Classic Editor via a plugin ??

    Anyway, it’s conceivable that corrupted HTML could get stripped out. Are you sure the HTML properly validates? Are you able to reliably induce this behavior? Does it still happen with stupid simple HTML like <div>Custom HTML Block</div>?

    If you can reliably induce the behavior, narrow down the source of the trouble by switching to a default twenty* theme and deactivating all plugins. Custom HTML should no longer disappear. Restore your theme and plugins, one at a time, testing after each, until the problem recurs. The last activated is the cause of the trouble.

Viewing 1 replies (of 1 total)
  • The topic ‘[NSFW] Custom HTML block disappears on re-edit’ is closed to new replies.