> For the complete documentation index, see [llms.txt](https://broadcast.presidiocreative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://broadcast.presidiocreative.com/product-theme-blocks/custom-code.md).

# Custom code

Use our **Custom code** block for older app integrations or to add your HTML, Liquid, or other specific code directly into the product pages section.

<figure><img src="/files/KyDZYoyFEzSn2IQxZJiI" alt="GIF depicting the Custom code block of the product pages section"><figcaption></figcaption></figure>

<table><thead><tr><th width="128.6788330078125">Settings</th><th width="96.421875" align="center">Type</th><th>Description</th></tr></thead><tbody><tr><td>Custom code</td><td align="center"><code>liquid</code></td><td>A field to enter custom Liquid or HTML code. Ideal for app snippets, tracking tags, or unique widgets.</td></tr><tr><td><strong>Padding</strong></td><td align="center"></td><td></td></tr><tr><td>Bottom</td><td align="center"><code>range</code></td><td>Controls spacing below the block.</td></tr></tbody></table>

## Notes

* This block accepts Liquid code, which is Shopify’s templating language.
* &#x20;Use responsibly—invalid code can impact page layout or performance.
* Useful for: App integrations (e.g., reviews, upsells); Custom display logic; Embedding third-party tools or tracking
* Be cautious with untested or unverified scripts, as errors in Liquid or JavaScript can cause frontend issues.


---

# 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://broadcast.presidiocreative.com/product-theme-blocks/custom-code.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.
