• Resolved Nox

    (@profnox)


    Hi,

    I’m currently developing a homemade theme based on Gutenberg blocks for the first time, and I’ve several questions I didn’t find an answer to, on the forum or in the Block Handbook doc.

    – I wonder if it is possible to add one or more blocks by default when you create a new page (without any pre-filled fields, just empty blocks) ? Maybe if the API don’t enable us to do that, a way through JS?

    – I also wonder if it possible to render certain blocks in a specific container for the front (reached by class or id) instead of generating all of them in the “post-content” div ? Actually I’ve custom blocks for a sub-header and a pre-footer used for some pages, and I don’t want them to be in the same container as the rest of the content. Or maybe a way to wrap them on save, or I don’t know ?

    Thank you very much in advance, I’m really stuck on it.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Gutenberg custom blocks’ is closed to new replies.