Support » Fixing WordPress » this block contains unexpected or invalid content

  • Hello,
    I have noticed that if I decide to edit a block via HTML in Gutenberg and add an attribute to a tag, I will get the unexpected or invalid content message.
    Other than wrong code, what else causes this?
    Regards,

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The blocks are very finicky about what attributes they’ll accept. There’s a brief whitelist of what’s acceptable. Any deviation causes that message to appear. If you need to customize block HTML, your best option is to copy the HTML into a Custom HTML block and edit and use that version instead.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.