Archived topic
Custom div blocks in pages
3 replies · Started by Rust on September 24, 2020
Hello.
Why can't i insert custom div-blocks into pages or sections? Blocks work normally only in hooks.
Hi there,
Not sure if I fully understand. Can you explain a bit more?
As for the Section question, see my reply here:
https://generatepress.com/forums/topic/sections-feature-doesnt-work-with-gutenberg-classic-editor-used-partially/#post-1454543
for example.
https://infofin.kz/zajmy-onlajn-v-kazahstane/
this div blocks don't work correktly in section or pages html editor.
it works only in hook for this page.
Hi there,
Blocks will only be rendered if the editor loads the block editor styles. Which does not apply when using the Classic editor or Sections. It works in the Block Element as that is using the block editor.
I would recommend NOT using Sections. Instead use our GenerateBlocks plugin within the Block Editor. You can use the Container Block to create sections: