Archived topic
Inserting GB Blocks in a Theme
3 replies · Started by Samuel on August 3, 2020
Quick question--I have a reusable block that I'm interested in inserting on certain post types. I can load it easily and insert it in a page using a page hook Render_block. However render_block does not access the css necessarily for the block to display properly. I've looked through the GB code and don't see a simple way to add the css necessary for a block to display properly when it's being added to the page programmatically via render_block.
Is there an easy way to generate the GB css programmatically?
Hi there,
GP Premium 1.11 introduces the Block Element which will do exactly that:
Awesome! There needs to be an email list that announces these things :)
Yeah - were working on it :)
Glad to be of help.