For the complete documentation index, see llms.txt. This page is also available as Markdown.

Code Block with Dynamic Data

Using dynamic data inside Bricks' Code Block is the most powerful and flexible way to control a block. You can allow users to control those dynamic data by exposing Dynamic Data as a form field in Gutenberg editor.

Use {gb_block_id} to scope block CSS properly

To have CSS to select a specific block, you can use {gb_block_id}. In the example below, the specific CSS is only applied to a block with class .block-{gb_block_id}

IMPORTANT: You MUST add block-{gb_block_id} to a parent element by using Dynamic Class.

Last updated