> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/paper/sections/sitewide/custom-liquid.md).

# Custom liquid

### Section overview

The Liquid section serves as a flexible container that enables developers to inject custom Liquid code directly into a Shopify theme.

#### Common use cases

* Display dynamic shop information like store name, policies, or announcements
* Integrate third-party widgets or scripts
* Create custom HTML/CSS structures that aren't available through standard sections
* Implement complex conditional logic based on template conditions

#### Usage tips

* Always test your Liquid code thoroughly before deploying to production
* Use the section's color scheme settings to maintain visual consistency with your theme
* Consider mobile visibility settings when adding content that might not display well on smaller screens
* Keep your Liquid code clean and commented for easier maintenance
* Leverage the built-in padding controls to maintain proper spacing within your layout

### Section settings

| Setting         | Description                                                                                |
| --------------- | ------------------------------------------------------------------------------------------ |
| Liquid          | Custom Liquid code to be rendered in this section                                          |
| Spacing top     | Controls the top padding of the section (0-300px)                                          |
| Spacing bottom  | Controls the bottom padding of the section (0-300px)                                       |
| Color scheme    | Determines the background and text color combination for the section                       |
| Border color    | Sets the color for any borders applied to the section                                      |
| Border position | Controls where borders appear on the section (none, top, bottom, or both)                  |
| Enable padding  | Toggles horizontal padding to match the rest of the site layout                            |
| Visibility      | Controls section visibility across different device sizes (all, mobile only, desktop only) |

### Block settings

This section does not contain any blocks.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/paper/sections/sitewide/custom-liquid.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
