---
title: 'Liquid objects: content_for_layout'
description: >-
  Dynamically returns content based on the current
  [template](/themes/architecture/templates).
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'
api_name: liquid
---

# 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 `<body>` and `</body>` HTML tags.

***

**Note:** The \<code>\<span class="PreventFireFoxApplyingGapToWBR">content\<wbr/>\_for\<wbr/>\_layout\</span>\</code> object is required in \<code>theme.liquid\</code>.

***

### Directly accessible in

* Global
