theme object
The theme that renders the current page. It is available in every template.
Properties
| Name | Type | Description |
|---|---|---|
id | string | Theme identifier |
name | string | Theme name |
active | boolean | Whether the theme is the published theme of the store |
is_dev_theme | boolean | Whether the theme is a development theme from the CLI |
liquid
{% if theme.is_dev_theme %}
<div class="dev-banner">{{ theme.name }}</div>
{% endif %}