{"title":"How to render content blocks using Liquid","slug":"how-to-render-content-blocks-using-liquid","url":"https://support.storeconnect.com/articles/how-to-render-content-blocks-using-liquid","url_markdown":"https://support.storeconnect.com/articles/how-to-render-content-blocks-using-liquid.md","subtitle":null,"summary":"Render content blocks in theme templates, articles, or markdown fields using the Liquid tag syntax, and access individual content block attributes like title and image.","type":"Help_Documentation","video_url":"","keywords":"liquid, content blocks, render content block, liquid tag, theme templates, all_content_blocks, content block attributes, markdown fields, liquid syntax, site content, content block identifier, template rendering","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"Wherever possible, render content blocks using relationships in Salesforce rather than Liquid. For example, place a content block on a page through the page record's related list, or set the header or footer content block directly on the store record. Managing content through relationships means you can continue to work with it in the [Website builder](website-builder).\n\nWhere relationships are not supported, such as placing a content block in an article or rendering one from a theme template, use the following Liquid tag in any markdown-compatible field or theme template:\n\n\n```liquid\n\n{{ all_content_blocks['identifier'].render }}\n```\n\n\nReplace `identifier` with the value of the content block's Identifier field.\n\n## Accessing content block attributes\n\nTo access specific attributes of a content block, such as its title, subtitle, or image, assign the content block to a variable and then output the attributes you need:\n\n\n```liquid\n\n{% assign content_block = all_content_blocks['identifier'] %}\n\n{{ content_block.title }}\n```\n\n\nFor the full list of available attributes, see [ContentBlock - Liquid Object Reference](content-block-liquid-object-reference)."}