--- title: 'Liquid objects: content_for_layout' description: >- Dynamically returns content based on the current [template](/themes/architecture/templates). api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/objects/content_for_layout' md: 'https://shopify.dev/docs/api/liquid/objects/content_for_layout.md' --- # content\_​for\_​layout Dynamically returns content based on the current [template](https://shopify.dev/themes/architecture/templates). Include the `content_for_layout` object in your [layout files](https://shopify.dev/themes/architecture/layouts) between the `` and `` HTML tags. *** **Note:** The \\content\\_for\\_layout\\ object is required in \theme.liquid\. *** ### Directly accessible in * Global