Skip to content

Yay! Another Gutenberg issue that’s existed for years. …

Yay! Another Gutenberg issue that’s existed for years. https://github.com/WordPress/gutenberg/issues/11681 Context: I want to lock down IndieBlocks’ like, but allow (any) InnerBlocks inside the new “like” block. This would allow me to add the necessary .h-cite and .e-content classes in just the right spots, while allowing users to add as many paragraphs, blockquotes, images, and whatnot without mucking up the post’s microformats.

Replies

  1. Jan Boddez on

    Ha, looks like $post_type_object->template_lock = ‘insert’; somehow works.
    (Still unsure if I’m not taking this too far. I could just wrap the whole post in .e-content, i.e., make things a bit simpler than they are now, and not add .h-cite support. You want fancier microformats? You better know what you’re doing.)