Skip to content
Log in

How to render content blocks using Liquid

On this page

For uses where relationships are not supported, like placing a content block in an Article or rendering a content block from a theme template, use the following Liquid tag in any markdown compatible field or within a theme template.

liquid {{ all_content_blocks['identifier'].render }}

Rendering content block attributes

If you need to access specific attributes of a content block (such as the title, image, or description), assign the rendered block to a variable first:

```liquid {% assign content_block = all_content_blocks[‘identifier’].render %}

{{ content_block.title }} ```

Was this article helpful?

Was this article helpful?