[Resolved] Inserting GB Blocks in a Theme

Home Forums Support Inserting GB Blocks in a Theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1385911
    Samuel

    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?

    #1385946
    David
    Staff
    Customer Support

    Hi there,

    GP Premium 1.11 introduces the Block Element which will do exactly that:

    https://generatepress.com/gp-premium-1-11-0-block-elements/

    #1385968
    Samuel

    Awesome! There needs to be an email list that announces these things 🙂

    #1386108
    David
    Staff
    Customer Support

    Yeah – were working on it 🙂
    Glad to be of help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.