> 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="https://2636770384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsD7BEEDU3B7WiEJlN0F7%2Fuploads%2Fj0K3lniYBJFNw3JthhGO%2Fcustom-code.jpg?alt=media&amp;token=3fa92d8d-ce53-4e22-adf3-cc0e5ca6365d" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://broadcast.presidiocreative.com/product-theme-blocks/custom-code.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
