# Liquid

<figure><img src="/files/Wbbynit6KWklDyijWRjf" alt=""><figcaption></figcaption></figure>

## Overview

A flexible custom liquid code block that allows merchants to add custom liquid code to their theme with customizable styling and responsive visibility options.

## Common use cases

* Use for custom liquid code snippets, variables, or logic
* Consider text color contrast when using force light/dark options
* Use visibility options to create different content for mobile/desktop
* Test liquid code thoroughly before using in production
* Be cautious with liquid code that could break the theme

## Block settings

### General

| Setting                | Description                 | Options                   |
| ---------------------- | --------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility settings | Checkbox (default: false) |

### Content

| Setting | Description                   | Options                                 |
| ------- | ----------------------------- | --------------------------------------- |
| Liquid  | Custom liquid code to execute | Liquid input (default: {{ shop.name }}) |

### Spacing

| Setting                   | Description                                | Options                   |
| ------------------------- | ------------------------------------------ | ------------------------- |
| Enable horizontal padding | Adds horizontal padding around the content | Checkbox (default: false) |
| Enable top padding        | Adds top padding around the content        | Checkbox (default: false) |
| Enable bottom padding     | Adds bottom padding around the content     | Checkbox (default: false) |

### Layout

| Setting              | Description                        | Options                                                     |
| -------------------- | ---------------------------------- | ----------------------------------------------------------- |
| Horizontal alignment | Controls horizontal text alignment | <p>• Left (default)<br>• Center<br>• Justify<br>• Right</p> |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/utility/liquid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
